Hi all,

I am having problems getting getch() to work, what i want to do is
at the end of my program ask the user if he wants to start again or quit, this is what i have :-


Code:
int endchoice()   
{

cout << "Type E to exit or press any other key to continue";
finish = getch();

if (finish == 'e')
{
return 0;
}

else
{
// does this need something?
}

}
So what i am saying is if 'e' is pressed it should quit the program,
any other key will return to main()

When i enter 'e' it just returns to main() anyway?

Can anyone see a problem?

Thanks guys

Boontune