Skip to content
Permalink
Browse files
Menu prototype
It hasn't been tested, so idk if it works, its also half-finished
  • Loading branch information
mannj15 committed Feb 8, 2020
1 parent ff8237a commit 32674d5a23d6a682aa698df0ca53e1719271a09b
Showing 1 changed file with 38 additions and 0 deletions.
@@ -0,0 +1,38 @@
#include <iostream>
#include <string>

using namespace std;

void menu(int &c);


int main()
{
int choice = 0;
menu(choice);
while (choice > 0)
{
switch (choice)
{
case 1: //Start playing
break;
case 2: //Manual
break;
case 3: //Tutorial
break;
default:
break
}

menu(choice);
}
system("PAUSE");

return 0;
}

void menu(int &c)
{
cout << "Choices: /n(0 quit, 1 start playing, 2 manual, 3 tutorial /nWhat do you choose? ";
cin >> c;
}

0 comments on commit 32674d5

Please sign in to comment.