cout << "Enter Y to continue" << endl;
cin >> flag;
// if statement below will check whether to continue or quit
if (flag == 'y' || flag == 'Y')
{
continue;
}
else
{
break;
}
}
cout << "Reached maximum capacity of Cineplex!!!" << endl;
cout << "The total amount of sales today is RM" << total2 << endl;
cout << "System exit..." << endl;
First of all, format your posts in the "[code"] and "[/code"] tags.
Second of all, what is the point of this post? Do you have a question, or are you trying to give out free help to the people who need to learn it on their own (without copying someone else's code)?