-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTrainticket.cpp
More file actions
44 lines (41 loc) · 1.14 KB
/
Trainticket.cpp
File metadata and controls
44 lines (41 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Trainticket.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <iostream>
#include <time.h>
#include "trainBookingSystem.h"
#include "userdao.h"
using namespace std;
int main()
{
TrainBookingSystem tbs;
tbs.systemStart();
//vector<int> res = tbs.findSite("sf", "fw");
/*Train train(8, "G655", "peace");
train.siteInit(0);
for (int i = 0; i < 240; i++) {
train.getTicket(1, 9);
}
cout << train.getcurrentstart() << "-" << train.getcurrentend() << endl;
for (int i = 0; i < 15; i++) {
cout << train.getTicket(2, 10) << " ";
}
for (int i = 0; i < 2000; i++) {
train.getTicket(rand()%11, rand() % 11);
}
train.show();
cout << train.getcurrentstart() << "-" << train.getcurrentend() << endl;*/
/**/
/*TrainBookingSystem train;
train.Show2();
train.login();
train.showTrains();
train.buyTicket();
train.showRecord();
train.refundTicket();
train.showRecord();
train.buyTicket();
train.findSiteSer();*/
//train.refundTicket();
//train.showRecord();
//f.writeContent("user.txt", "werwrw");
}