waiting for a girl……

#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;
}

  • 0
    点赞
  • 1
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值