online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/*************************************************************** * Name: Rafael Orta * Course: Computer Science & Programming * Class: CS04103 Section: 5 * Assignment Date: 09/21/23 * File Name: conditional.cpp ***************************************************************** * Lecture #: 3 * Purpose: Demonstrate the use of if statements *****************************************************************/ #include <iostream> #include <iomanip> #include <stdlib.h> using namespace std; int main() { // Variable declarations int choice = 0; // Gathering data cout << endl; cout << setw(80) << "******* Welcome to Marriott Hotels reservation system *****" << endl << endl << endl; cout << setw(65) << "1.- Create a new reservation\n"; cout << setw(71) << "2.- Modify an existing reservation\n"; cout << setw(62) << "3.- Cancel a reservation\n\n"; cout << setw(80) << "Please select your choice and press the <enter key>: "; cin >> choice; cout << endl << endl; // Validating input and displaying results if (choice == 1) { system("clear"); cout << setw(80) << "******** Creation of the new reservation ********"; } else if (choice == 2) { system("clear"); cout << setw(80) << "******** Modification of existing reservation ********"; } else if (choice == 3) { system("clear"); cout << setw(80) << "******** Cancelation of existing reservation ********"; } else { cout << setw(80) << "Invalid input, sorry valid choices are (1-3), please try again: "; cin >> choice; } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue