摘要:
1 #include <stdio.h> 2 3 void InvertStore(char A[]) 4 //字符串逆序存储的递归算法。 5 { 6 char ch; 7 static int i = 0;//需要使用静态变量 8 ch=getchar(); 9 if (ch!= '\n') // 阅读全文
posted @ 2020-01-06 20:44
溪风吹雨
阅读(221)
评论(0)
推荐(0)
摘要:
#include<stdio.h> int main() { int num[100]={0}; char ch;int i,k=100; while((ch=getchar()) !='#') { // ↑ ↑两个括号很重要 //!=的优先级大于= //所以你如果不加上括号的话while(ch=g 阅读全文
posted @ 2020-01-06 16:12
溪风吹雨
阅读(210)
评论(0)
推荐(0)
浙公网安备 33010602011771号