欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 运维知识 > windows >内容正文

windows

数据结构火车订票系统C语言课程设计,求助一个数据结构C语言课程设计源代码订票系统^:^!...

发布时间:2025/3/12 windows 57 豆豆
生活随笔 收集整理的这篇文章主要介绍了 数据结构火车订票系统C语言课程设计,求助一个数据结构C语言课程设计源代码订票系统^:^!... 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

/********************************/

/*TurboC2。0运行通过*/

/*飞机订票系统*/

/* */

/********************************/

#include

#include

#include

main()

{

char ch;

int flag=0;

menu();

do

{flag=1;

if((ch=getchar())!='\n')

{

switch(ch)

{

case '1':printf("\n\tDisplay Plane Information\n") ;

break;

case '2':printf("\n\tInput Plane Information\n") ;

break;

case '3':printf("\n\tQuery\n");

break;

case '4':printf("\n\tBooking\n");

break;

case '5':printf("\n\tReturn\n");

break;

case '\n':break;

case '0':exit(0);

default:printf("\n\tInput error!\n");

}

printf("\n\tpress any key ,again。

。。\n");

getch();

menu();

}

}while(flag==1);

getch();

}

menu()

{ clrscr();

printf("\n\n\n\tPlane Booking System\n");

printf("\n\t1。

Browse \n");

printf("\t2。Input \n");

printf("\t3。Query\n");

printf("\t4。Booking\n");

printf("\t5。Return Tickets\n");

printf("\t0。

quit\n");

printf("\tpress a key for your choice:");

}

全部

总结

以上是生活随笔为你收集整理的数据结构火车订票系统C语言课程设计,求助一个数据结构C语言课程设计源代码订票系统^:^!...的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。