Bus Reservation System in C++ (simple logic)
#include <conio.h> #include <cstdio> #include <iostream> #include <string.h> #include <cstdlib> using namespace std; static int p = 0; class a { char busn[5], driver[10], arrival[5], depart[5], from[10], to[10], seat[8][4][10]; public: void install(); void allotment(); void empty(); void show(); void avail(); void position(int i); } bus[10]; void vline(char ch) { for (int i=80;i>0;i--) cout<<ch; } void a::install() { cout<<"Enter bus no: "; cin>>bus[p].busn; cout<<"\nEnter Driver's name: "; cin>>bus[p].driver; cout<<"\nArrival time: "; cin>>bus[p].arrival; cout<<"\nDeparture: "; cin>>bus[p].depart; cout<<"\nFrom: \t\t\t"; cin>>bus[p].from; cout<<"\nTo: \t\t\t"; cin>...