Code:
#include <iostream>
using namespace std;
int main()
{
int input;
cout<<"1. Play game\n";
cout<<"2. Load game\n";
cout<<"3. Play multiplayer\n";
cout<<"4. Exit\n";
cout<<"Selection: ";
cin>> input;
switch ( input )
{
case 1:
cout<<"Whoops! Broken disk...\n";
break;
case 2:
cout<<"Waiting for image...\n";
break;
case 3:
cout<<"n00b!\n";
break;
case 4:
cout<<"Thank you for playing!\n";
break;
default:
cout<<"Error, bad input, quitting\n";
break;
}
system("pause");
}
there is no need for this function prototypes:
Code:
int a();
int b();
int c();
I hope it works for you, I tested it and it works fine now!