int main()
{
char *lovername = "lucy";
char name[128] = {0};
do
{
memset(name,0x00,sizeof(name));
printf("我喜欢谁请输入她的名字\n");
scanf("%s",name);
if(strcmp(name,lovername)==0)
{
printf("恭喜猜对\n");
break;
}
else
{
printf("你的回答错误请重新输入");
}
}
while(1);
return 0;
}