摘要:
char ch;printf("%c",&ch);//接受空字符在内的所有字符而printf(" %c",&ch);//接受非空字符。%前面有空格 阅读全文
posted @ 2012-03-29 17:36
ppjj
阅读(259)
评论(0)
推荐(0)
摘要:
count=0;while(i<8){ch=getchar();if(ch=='n')continue;putchar(ch);count++;}continue执行的时候,跳出本次循环,也就是说后面的count++没有执行,不包括换行符。输出10个字符而for(count=0;count<10;c... 阅读全文
posted @ 2012-03-29 17:31
ppjj
阅读(255)
评论(0)
推荐(0)