标签:etc NPU tin 输入 code 打印 std include lse
1 #include <stdio.h> 2 3 void getInput(); 4 5 void getInput() 6 { 7 int ch; 8 9 if ((ch = getchar()) != ‘!‘) 10 { 11 getInput(); 12 } 13 else 14 { 15 printf("反向输出:"); 16 } 17 18 putchar(ch); 19 } 20 21 int main(void) 22 { 23 printf("请输入一句以感叹号结尾的英文句子:"); 24 getInput(); 25 putchar(‘\n‘); 26 27 return 0; 28 }
标签:etc NPU tin 输入 code 打印 std include lse
原文地址:https://www.cnblogs.com/Leafbud/p/12700300.html