c新手吧 关注:8,593贴子:48,089
  • 0回复贴,共1

求大神帮忙

只看楼主收藏回复

#include<stdio.h>
main()
{
char a[50];
printf("Please write the name of the girl whom I love:");
scanf("%s",&a);
if(a=="万丹丹")
printf("You are right.");
else
printf("You are wrong,and it will close.\n");
getchar();
return 0;
}
这个不论怎么输入都是You are wrong...我抓狂了


来自Android客户端1楼2016-10-09 22:26回复