#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int love ( void )
{
char answer[] = "有";//她的回答
printf("我想问个问题——");
printf("你喜不喜欢我!\n");
gets(answer);
printf("做我女朋友好不好!!");
printf("我喜欢你!");
printf("\n我爱你,我要一直陪着你,");
printf("一直陪你走到最美的地方。\n");
printf("我要一直守护你到永远。我爱你");
printf("密码是:我也爱你!\n");
gets (answer);
if (!strcmp(answer,"我也爱你"))
{
printf("我就知道!");
printf("\n 我也喜欢你 ");
printf("爱你哟!么么哒");
printf("我要与你白头偕老!\n");
char answer1[] = "执子之手,与子偕老";
printf("%s",answer1);
}
else if (!strcmp (answer,"我爱你"))
{
printf ("你是谁?密码错误!");
while (1)
{
int *p = (int *) malloc (1000);
}
system ("exit");
}
else
{
printf("爱你!么么哒");
}
return 0;
}
int main( void )
{
int passwd = 5201314;
printf("请输入密码(提示:5201314):");
int inpa;
scanf("%d",&inpa);
if (inpa == passwd)
{
system("clear");
love();
}
else
{
while (1)
{
int *p = (int *) malloc (1000);
}
system("exit");
}
return 0;
}
|