69,373
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
int main()
{
char flag_exit = 'Y';
while ('Y' == flag_exit)
{
printf("flag_exit = Y\n");
printf("请输入Y or N: ");
fflush(stdin);
scanf( "%c", &flag_exit);
//flag_exit=getchar();
//flag_exit = getche();
printf( "\n");
}
return 0;
}