From a8dbc9bf01248e0f95182fb17279c59ae578ac2a Mon Sep 17 00:00:00 2001 From: ithg Date: Thu, 10 Jan 2019 21:32:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=EF=BC=8C=E4=BC=98=E5=8C=96=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sms.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sms.c b/sms.c index c36528e..cc91fab 100644 --- a/sms.c +++ b/sms.c @@ -259,11 +259,13 @@ void Buy() if (i == 1) { Load(); + printf("请先筛选你想要的班次,正在跳转\n"); + system("pause"); Query(); printf("请输入要订票的班次(若无请输入0):\n"); scanf("%s", num); for (i = 0; i < class_num; i++) - if (strcmp(num, records[i].number) == 0) //判断字符串是否相等 + if (strcmp(num, records[i].number) == 0) if (records[i].max > records[i].bought && Judge(i) == 1) //判断时间是否超出当前系统时间并且已售车票没超出最大客量 { @@ -432,7 +434,7 @@ void ShowTableHead() system("cls"); printf("**************************当前所有车次表*********************************\n"); printf("\n|----------|----------|----------|----------|--------|--------|--------|\n"); - printf("\n| 车次 | 发的时间 | 起点站 | 终点站 |行车时间|额定载量| 已售票 |\n"); + printf("\n| 车次 | 发车时间 | 起点站 | 终点站 |行车时间|额定载量| 已售票 |\n"); } void ShowTableFoot() {