Hi everyone,
I am very new to C++ and have only started learning/understanding the language.
I am trying to create a very simple program - a basic menu system.
I've started with code like (Below):
What i'm tryin to achieve is for the user to be presented with a menu screen which gives options 1 - 3. Then the user types one of these option and is navigated to a new screen with new information on it.
*I am completley stuck on how to navigate to a new screen, any ideas? help greatly appreciated.*
Code:
#include <iostream.h>
int main()
{
int num;
cout << "Enter a number from 1 to 3: ";
cin >> num;
switch(num) {
case 1:
cout << "TEST1\n";
break;
case 2:
cout << "TEST2\n";
break;
case 3:
cout << "TEST3\n";
break;
default:
cout << "You must enter either 1, 2, or 3.\n";
}
return 0;
}