Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use C++ to realize plane booking system

Shulou Source: shulou.com Published: 2022-06-01 05:58:15 10月01日 Update

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

Tags: Flight aircraft time purpose place destination passenger Code capacity fare query start input system content article Cruise success Information ticketing Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Redmi MySQL NVidia Huawei