void play();
int main()
{
do{
intro(); //Intro prints the intro :D
gameover(); //Gameover calls the play function if you choose to play
}while( choice == 1 );
}
void intro()
{
//Print the intro
}
void play()
{
do{
//Code to play...
}while( choice == yes );
}
void gameover()
{
cout << "Would you like to play? ( 1 for yes, 2 for no )\n";
cin >> choice; // you only need 1 int for making decisions, but do what
// makes reading your code easier for yourself
if( choice == "1" )
{
play();
}
elseif(//gameover)
{
//... code
}
}
Yeah, I'll give it a shot, but I've been working between mac and windows, so your code seems a little foreign to me (because I can't use anything strictly for one operating system)