#include "stdio.h"
void main()
{
int acount=0,ecount=0,ucount=0;
int icount=0,ocount=0;
char ch,x;
printf("please input a string:");
scanf("ch",&ch);
x=ch;
while(x!=-1);
{switch(ch)
{
case 'A':
case 'a':
acount++;
break;
case 'E':
case 'e':
ecount++;
break;
case 'U':
case 'u':
ucount++;
break;
case 'I':
case 'i':
icount++;
break;
case 'o':
case 'O':
ocount++;
break;
}
}
printf("a=%d,e=%d,u=%d,i=%d,o=%d",acount,ecount,ucount,icount,ocount);
}
各位帮忙看看哪错了,输入一个字母过后没有反应!