int main(){
while(true){
//do your stuff here
if(cin.get() == 'q') break;//a way to get out.
}
return 0;
}
main is int and returns 0. conio.h is not standard.
you use string class without including <string>
you neither add std:: to cin, cout and string nor use namespace std.
in choice function you could iterate through string and change all letters to lowercase (function is tolower).
you could also use an std::map.
int main ()
{
start:
// your main code here
goto start;
return 0;
}
In small programs this might be a good/easy way to do it.
But if you decide to go to more complicated progs, you should use something else, 'cause goto can make progs really hard to understand ^^
Even that way, scoping of variables can become an issue, and in any case, really, goto makes things hard to read. It is archaic and belongs in a museum, leave it there. Use loops.