Lesson 19: VIP | Self-Learning C++ with Kids
Program 1: Ticket Check (Regular·Business) 【Code 29 lines】Output as shown in the figure #include <iostream> using namespace std; int main(){ int isOK; string speedboat; while(true){ cout<<“If you have a ticket, please enter 1″<<endl; cin>>isOK; if(isOK!=1){ cout<<“Please purchase a ticket first”<<endl; } else if(isOK=1){ cout<<“Please enter!”<<endl; cout<<“Please enter the type of ticket (Regular, Business)”<<endl; cin>>speedboat; if(speedboat==”Regular”){ … Read more