#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...我抓狂了
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...我抓狂了