(Origin section: C/C
The file format in the compressed package: executable file
Attachment source: Internet
Operation mode: Windows mode
Is it verified by yourself: yes
Attachment nature: free
Detailed description: 1. Program function
A station has n departures every day, each of which has a departure number (1, 2, 3, ..., n), a fixed departure time, a fixed road (starting station, terminal station), an approximate driving time, fixed additional passenger capacity. like:
The departure time of the departure station of the departure station and the terminal station of the travel time of the additional capacity of the ticketed number of people
18:00 Chongqing 104530
26:30 Chongqing 44040
37:00 Chongqing 44020
410:00 Chongqing 4402
...
It is now requested to design a management system that can terminate the following functions:
(1) Enter the shift information (the information is kept in the file), and the shift data can be added unpunctually;
(2) Reading the shift information, it can display the current status of all the shifts (if the system time exceeds the departure time of a certain shift, the prompt information that has been released for this shift will be displayed);
(3) Query the road: you can query by the shift number or by the terminal;
(4) Ticket sales and refund functions.
①: Only when it is found that the number of people who have booked tickets is less than the additional capacity and the system time is less than the departure time can the ticket be sold, and the number of tickets sold will be updated automatically;
②: When refunding the ticket, enter the number of the refunded ticket, and the ticket can be refunded only when the bus has not been released, and the number of tickets sold will be updated automatically.
2. Design Thinking
This system can be designed with reference to part of the design method of the student achievement management system.
20070610192300108\Login window\HZK16
TCPIP-Vol2\compile\.depend
TCPIP-Vol2\shell\.depend
turboc2\INCLUDE\SYS\STAT.H
turboc2\INCLUDE\SYS\TIMEB.H
turboc2\INCLUDE\SYS\TYPES.H
turboc2\INCLUDE\ALLOC.H
turboc2\INCLUDE\ASSERT.H
turboc2\INCLUDE\BIOS.H
turboc2\INCLUDE\CONIO.H
tur
"Visual C advanced programming and its project use
"Visual C Advanced Programming and Project Development" Supporting Code\Chapter 7\MyFieldTry\StdAfx.h
bus.txt)