Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
#include "player.h"
int main() {
int choice;
//While loop to chose your player class
while (!std::cin >> choice || choice > 3 || choice < 1) {
std::cout << "Choose your character class. \n[1] Superman [2] Spider-Man [3] Batman; " << std::endl;
std::cin >> choice;
}
//Initalise instance "character" of player Class
player character(choice);
std::cout << "\nWelcome " << character.printClass() << ". Let's begin your adventure. " << std::endl;
//Print out player stats BS
std::cout << "Your starting stats:" << std::endl;
character.printStats();//END BS
while()
std::cin.ignore();
std::cin.get();
return 0;
}