关于字符递归函数switch.docVIP

  • 5
  • 0
  • 约1.81万字
  • 约 27页
  • 2017-01-03 发布于重庆
  • 举报
字符数组输入输出 #include stdafx.h int main(int argc, char* argv[]) { char c; while( 1 ) { scanf(%c, c); printf(%c, c); if(c==\n) // 10 break; } return 0; } #include stdafx.h int main(int argc, char* argv[]) { char s[10]; char t1[10]={1,2,3}; char t2[10]=Wangqiong; char t3[10]=王琼; for(int i=0; i3; i++) { gets(s); //scanf (%s , s); puts(s); //printf(%s\n , s); } return 0; } 字符计数 #include stdafx.h int Get09Count(char s[]); int GetAZCount(char s[]); int GetazCount(char s[]); int main(int argc, char* argv[]) { char s[100]; gets(s); printf(n1=%d\n, GetAZCount(s));

文档评论(0)

1亿VIP精品文档

相关文档