Skip to content

Instantly share code, notes, and snippets.

@Tasemu
Created March 9, 2015 09:20
Show Gist options
  • Save Tasemu/c71d0017ef9e9e604fdb to your computer and use it in GitHub Desktop.
Save Tasemu/c71d0017ef9e9e604fdb to your computer and use it in GitHub Desktop.
// 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