Created
March 9, 2015 09:20
-
-
Save Tasemu/c71d0017ef9e9e604fdb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// ConsoleApplication1.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include "Hero.h" | |
using namespace std; | |
void mainmenu(); | |
void createNewHero(); | |
int _tmain(int argc, _TCHAR* argv[]) | |
{ | |
mainmenu(); | |
} | |
void createNewHero() { | |
string heroName; | |
string heroClass; | |
int exit; | |
cout << "Hero name: "; | |
cin >> heroName; | |
cout << endl << "Hero class: "; | |
cin >> heroClass; | |
Hero hero(heroName, heroClass); | |
mainMenu(); | |
} | |
void mainmenu() { | |
int choice1; | |
cout << "Hero Generator ----- | |
"; | |
cout << "MENU | |
"; | |
cout << "1: Create Heron | |
"; | |
cout << "2: View Heros | |
"; | |
cin >> choice1; | |
if (choice1 == 1) { | |
createNewHero(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment