c语言实现购票子系统

#include <stdio.h>

#include <string.h>

#define ERROR 999 

#define FLASE 998 

#define TURE 997 

int denglu();

int caidan();

typedef struct people{

 char yonghu[20];

 char mima[20];

}people; 

typedef struct Birthday{

 int year;

 int month;

 int day;

 char a[50];

}Birthday; 

typedef struct yupiao{

 char youlocation[20];

 char mudilocation[20];

  int yupiao;

 int value;

 char checi[10];

 Birthday birthday;

}yupiao;

 yupiao p1={"西安","神木",5,98,"k8203",{2024,8,21,"10:24"}};

 yupiao p2={"西安","汉中",12,97,"D1983",{2024,8,20,"12:50"}};

 yupiao p3={"西安","榆林",7,81,"C202",{2024,8,20,"20:13"}};

 yupiao p4={"西安","绥德",23,98,"C200",{2024,8,19,"22:59"}};

 yupiao p5={"西安","延安",0,98,"k560",{2024,8,20,"13:30"}};

 yupiao arr[5]={p1,p2,p3,p4,p5};

 static people pe1={"王家琛","123"};

 static people pe2;

 static people pe3;

 static people pe4;

 static people pe5;

 static people pe6;

 static people pe;

 static people brr[5]={pe1,pe2,pe3,pe4,pe5};

int main() {

   

 int iRet=denglu();

    if(iRet==TURE){

     return 0;

 }

 caidan();

 return 0;

}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值