编辑: Cerise银子 2019-07-11

namespace PlaneTicketSystem { /// /// Fun 的摘要说明. /// public class Fun:TicketSystem //定义功能类Fun { public int I=0,S=0;

public static Ticket[] myTicket =new Ticket[8];

public static User[] MyU=new User[1000];

public void Init() { Ticket MyT1=new Ticket();

Ticket MyT2=new Ticket();

Ticket MyT3=new Ticket();

Ticket MyT4=new Ticket();

Ticket MyT5=new Ticket();

Ticket MyT6=new Ticket();

Ticket MyT7=new Ticket();

Ticket MyT8=new Ticket();

//Ticket类对象初始化 MyT1.Ph="AN910";

MyT1.Date="10:00-12:00";

MyT1.Jc="XB9101";

MyT1.Sfd="西安";

MyT1.Mdd="北京";

MyT1.Ps=1;

MyT1.Pj=1200;

MyT2.Ph="AN910";

MyT2.Date="13:00-15:00";

MyT2.Jc="XB9102";

MyT2.Sfd="西安";

MyT2.Mdd="北京";

MyT2.Ps=150;

MyT2.Pj=1100;

MyT3.Ph="AK921";

MyT3.Date="09:00-11:30";

MyT3.Jc="XS9211";

MyT3.Sfd="西安";

MyT3.Mdd="上海";

MyT3.Ps=150;

MyT3.Pj=1500;

MyT4.Ph="AK921";

MyT4.Date="13:30-16:00";

MyT4.Jc="XS9212";

MyT4.Sfd="西安";

MyT4.Mdd="上海";

MyT4.Ps=120;

MyT4.Pj=1400;

MyT5.Ph="AN927";

MyT5.Date="10:30-12:00";

MyT5.Jc="XW9271";

MyT5.Sfd="西安";

MyT5.Mdd="武汉";

MyT5.Ps=120;

MyT5.Pj=1100;

MyT6.Ph="AN927";

MyT6.Date="14:30-16:00";

MyT6.Jc="XW9272";

MyT6.Sfd="西安";

MyT6.Mdd="武汉";

MyT6.Ps=80;

MyT6.Pj=1000;

MyT7.Ph="AN928";

MyT7.Date="09:30-11:00";

MyT7.Jc="XC9281";

MyT7.Sfd="西安";

MyT7.Mdd="成都";

MyT7.Ps=100;

MyT7.Pj=1000;

MyT8.Ph="AN928";

MyT8.Date="15:00-17:00";

MyT8.Jc="XC9282";

MyT8.Sfd="西安";

MyT8.Mdd="成都";

MyT8.Ps=80;

MyT8.Pj=900;

myTicket[0]=MyT1;

myTicket[1]=MyT2;

myTicket[2]=MyT3;

myTicket[3]=MyT4;

myTicket[4]=MyT5;

myTicket[5]=MyT6;

myTicket[6]=MyT7;

myTicket[7]=MyT8;

} public void caxun() { int c;

Console.WriteLine(" 请选择查询方式\n 0.查询全部机票信息\t1.查询目的地机票信息\t2.查询顾客(订票人)信息\t3.退出");

c=int.Parse(Console.ReadLine());

if(c==0) { Console.WriteLine("票号\t"+"时间[06-12-18]\t"+"机次\t"+"始发地\t"+"目的地\t"+"票数\t"+"票价\t");

Console.WriteLine( for(int i=0;

i

下载(注:源文件不在本站服务器,都将跳转到源网站下载)
备用下载
发帖评论
相关话题
发布一个新话题