从键盘中读入一系列字符,直到输入字母a时停止,打印a之前的所有字符
日期: 2019-04-06 分类: 个人收藏 346次阅读
#include <stdio.h>
main()
{
char c;
while((c = getchar())!= 'a')
printf("%c", c);
}
除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog
精华推荐
日期: 2019-04-06 分类: 个人收藏 346次阅读
#include <stdio.h>
main()
{
char c;
while((c = getchar())!= 'a')
printf("%c", c);
}
除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog
精华推荐