y\n的选择(麻烦了)
char ch;
printf("do you want to exit? y\n");
scanf("%c",&ch);
if(ch=y) printf("bye~!");
else printf("welcome!");
编译老是不通过,但是我找不出是怎么一回事.帮帮忙,谢谢了
char ch;
printf("do you want to exit? y\n");
scanf("%c",&ch);
if(ch=y) printf("bye~!");
else printf("welcome!");
编译老是不通过,但是我找不出是怎么一回事.帮帮忙,谢谢了
char ch;
printf("do you want to exit? y\n");
scanf("%c",&ch);
if(ch=y) printf("bye~!");
else printf("welcome!");
编译老是不通过,但是我找不出是怎么一回事.帮帮忙,谢谢了
if (ch==y)...