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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!