#include <stdio.h>
int main(void)
{
char ch;
do
{
printf("AA\n");
printf("æ¯å¦ç»§ç»?(y/n)\n");
scanf(" %c", &ch);//为ä»ä¹%cåé¢è¦å ç©ºæ ¼æè½å®ç°è¿ä¸ªåè½?
} while (ch=='y' || ch=='Y');é®é¢æ¯åºå¨è¿éï¼do...whileï¼ï¼ï¼doæ§è¡ä¸æ¬¡ï¼ç¶åå¤ææ¡ä»¶ï¼æ¡ä»¶ä¸(ch=='y' || ch=='Y')æç©ºæ ¼ï¼æç©ºæ ¼å äºå°±è¡äºã
return 0;
}
æè
å¨scanfè¯å¥ä¸è¾¹å ä¸å¥getchareï¼ï¼ï¼ä¹å¯ä»¥å®ç°
温馨提示:内容为网友见解,仅供参考