为什么我的getchar()未执行?
cs_zj 2003-10-20 02:17:59 我的程序如下:
#include "stdio.h"
main()
{
char c[10],cc,ccc[10];
printf("Please input the c:");
scanf("%s",c);
printf("\nPlease input the cc:");
cc=getchar(); /*这一行未执行。*/
printf("\nPlease input the ccc:");
scanf("%s",ccc);
}
问题是:我的getchar()函数没有执行,不知道怎么回事?