#include "stdafx.h"
#include "stdlib.h"
int main()
{
char ch;
int i=0;
while((ch=getchar())!='#')
{
if(ch=='e')
continue;
if(ch=='i')
i++;
}
printf("is %d\n",i);
system("pause");
return 0;
}
编写一个程序读取输入,直到‘#’,并报告序列 ei 出现的次数
最新推荐文章于 2022-04-30 20:40:26 发布