Skip to content
Snippets Groups Projects
Commit 5f8b0bd7 authored by Rudi Buss's avatar Rudi Buss
Browse files

Update Exercise 3 - Vehicle.txt

parent 457b1e0d
No related branches found
No related tags found
No related merge requests found
......@@ -55,33 +55,44 @@ int main ()
system("cls");
cout << endl << "---- CAR MANAGEMENT ----" << endl;
cout << "1. Create a new car" << endl;
cout << "2. Delete car" << endl;
cout << "4. Show list" << endl;
cout << "0. Exit program" << endl;
cout << "> Make a selection [Return]: ";
cin >> selection;
cout << endl;
cout << "1. Create a new car" << endl;
cout << "2. Delete car" << endl;
cout << "4. Show list" << endl;
cout << "0. Exit program" << endl;
cout << "> Make a selection [Return]: ";
cin >> selection;
cout << endl;
switch (selection)
{
case 0: // End
cin.ignore();
cin.get();
break;
case 1: // Create
cin.ignore();
cin.get();
break;
case 2: // Delete
cin.ignore();
cin.get();
break;
case 3: // List of all cars
cin.ignore();
cin.get();
break;
case 4: // Search for car by CarNo. and if found, then output number of passengers/weight
cin.ignore();
cin.get();
break;
case 4: // Search for car by CarNo. and if found, then output number of passengers/weight
break;
default: // Incorrect input
cin.ignore();
cin.get();
break;
}
} while (selection != 0);
//Delete all elements of the list
system("pause");
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment