Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Menu prototype
It hasn't been tested, so idk if it works, its also half-finished
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |