#include <stdio.h>
#include <string.h>
#include <conio.h>
#define LASTTIME 12*30*24*60*60
#define LIVETGE 3*30
struct man{
char name[20];
int age;
char sex[10];
char livecity[50];
char work[100];
int high;
int long phone;
char email[30];
char hope[1024];
};
man you;
int set_you();
int contact();
int livetge();
int main()
{
man *me;
memset(me,'/0',sizeof(man));
strcpy(me->name,"liang shou chang");
me->age=23;
strcpy(me->sex,"boy");
strcpy(me->livecity,"beijing");
strcpy(me->work,"C algorithm development");
me->high=170;
me->phone=13264220323;
strcpy(me->email,"shellfish@126.com");
strcpy(me->hope,"She is kind, beautiful girl, preferably also in the IT industry, want to contact me ~. ~");
int i;
for(i=0;i <LASTTIME,i++)
{
start:
sleep(1);
if(set_you()==1)
if(you->age>18&&you->age <25&&strcmp(you->sex,"girl")&&strcmp(you->livecity,"beijing")&&strcmp(you->work,"IT"))
{
printf("maby you can┏─┓for me/n");
getcher();
system("cls");
if(!contact()!=0)
goto start;
if(!livetge()!=0)
goto start;
}
}
}
int set_you(){
memset(you,0,sizeof(man));
char tmp=getch();
char msg_tmp[1024];
int i=0;
printf("
You are a good girl do? You are in Beijing?
You are in the IT industry?
tell me, I'm waiting for you ... ...
");
printf("Tell me your name please?/n");
scanf("%s",you->name);
printf("Age is also necessary to~。~/n");
scanf("%d",you->age);
printf("You are a girl do?(girl or boy)/n");
scanf("%s",you->sex);
printf("which city is you living?/n");
scanf("%s",you->livecity);
printf("What kind of work you do?");
scanf("%s",you->work);
printf("How high do you have?/n");
scanf("%d",you->high);
printf("Leave phone number bar~.~/n");
scanf("%ld",you->phone);
printf("By the way email left bar/n");
scanf("%s",you->email);
printf("Places to talk about my aspirations, or want to know?/n");
for(i=0;i<1024;i++)
*(msg_tmp+i)=getch();
strcpy(you->hope,msg_tmp);
return 1;
}
int contact()
{
printf("/tI received your phone or email~.~/n");
printf("/ti'm very happy/n");
printf("I will give you phone, let's go to the movies, to accompany you shopping, running, watching red leaves, watching
the sunset, playing games, in conjunction with the code, with the smile ... ...");
return 1;
}
void a_day()
{
printf("
╭︿︿︿╮
I's me{/ ︿︿ /}
( (oo) )
︶ ︶ ︶
╭︿︿︿╮
{/ ︿︿ /} I's you
( (oo) )
︶ ︶ ︶");
sleep(2);
system("cls");
printf("
*/. . . * .
./* . [] * __
*/ . .//~~~~~~~~~~~~'/. |◆
/* ,/,..,/,...........,/.◆
|| ..▎# ▎田 田 ▎ | ▎◆
|| &&▎ ▎ ▎'|'▎ o
|| ##■■■■■■■■■■〓 ");
printf("We can have a happy little family");
printf("We can spend happy a day");
sleep(1);
system("cls");
}
int livetge()
{
int i=0;
while(i<3)
{
a_day();
i++;
}
if(i*30>=LIVETGE)
return 1;
}