Question: When I execute this program in debug mode, the console screen may appear and disappear before I have an opportunity to view the output. How
When I execute this program in debug mode, the console screen may appear and disappear
before I have an opportunity to view the output. How do I keep this from happening?
C++ code:
// ---------------------------------------------------------------
// Programming Assignment: LAB1A
// Developer: ______________________
// Date Written: ______________________
// Purpose: Ticket Calculation Program
// ---------------------------------------------------------------
#include
using namespace std;
void main()
{
cout << "John Doe ticket program ";
int childTkts, adultTkts, totalTkts;
cout << "Please enter the number of child tickets:";
cin >> childTkts;
cout << "Please enter the number of adult tickets:";
cin >> adultTkts;
totalTkts = childTkts + adultTkts;
cout << "The total tickets are: "< }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
