How to use C++ to realize plane booking system
The editor will share with you how to use C++ to realize the plane booking system. I believe most people don't know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. let's learn about it!
The details are as follows
/ / aircraft booking system .cpp: defines the entry point for the console application. / / # include "stdafx.h" # include#include# include#include#define N 2typedef struct plane {char ID [10]; char Start_Place [10]; char End_Place [10]; float price; int Buy_num; int Max_num; char time [20];} PLANE;PLANE p [N]; void menu (); void menu1 (); void count () {char a [10]; int I, num = 0 Printf ("Please enter the aircraft destination to be counted:"); scanf ("% s", a); printf ("flight code, starting place, destination fare sold passenger capacity time / n"); for (I = 0; I