Hello I'm working on the begining of a text based rpg and I'm having trouble already. There seems to be a problem here
Code:
void mage()
{
health = 100;
mana = 50;
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
title();
cout << "\n\n\n\n\n\n\n\n\n\n\n";
cout << "Ah, a man of wisdom and magic." << '\n';
cout << "\n";
cout << "Is this correct?" << '\n';
cout << "\n";
cout << "Press y for yes and n for no." << '\n';
switch(yes_no)
{
case 'y':
mage2();
con = 1;
break;
case 'n':
race_f();
con = 1;
break;
default:
cout << "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
cout << "Not too bright, huh? y or n" << '\n';
cout << "\n\n";
con = 0;
break;
}
while (con == 0);
}
it only goes to "press y fo" then it doesnt say any more and you cant type anymore. Can someone help me please?