Mega Code Archive
Categories
/
C
/
Code Snippets
Use getche() to receive user selection
#include
#include
int main(void) { char ch; printf("Do you wish to continue? (Y/N : "); ch = getche(); if(ch=='Y') { /* continue with something */ } return 0; }