Hello guys , i recently started programming in C++ , and i am trying to create a text-based RPG in prompt console ...
what my problem is that i have my main function , calling one other function name infomisc , in infomisc function it let you choose , 1. create character and 2. exit program , now i created a switch for this to work :
switch( info1 )
{
case 1:
{
character();
}
break;
case 2:
{
exitprog();
}
break;
default:
cout << "\n Invalid number inserted";
}
this , till here its ok , isnt it ?
i created int character(){} and int exitprog(){} , in character i didnt add anything yet , in exitprog i added exit(); , it gives me error , how can i make it exit the program?
Regards