you know that "Press any key to exit" thing that pops up when your ready to exit. how do i take that out and put my own i have.
now all i need it to exit when that key is pressed. how can i do my own exit. with out any api or anything like that.Code:char cExit; do //do whats in the brackets { printf("To exit press Q\n"); cExit = getch(); cExit = toupper(cExit); if (cExit == 'Q') printf("Bye!\n\n"); } while(cExit !='Q');//until the letter q or Q is pressed


Reply With Quote