void wait_enter(){
cout <<"\nPress any key to continue...";
char key;
cin >> key;
};
I've written a function for my program like this in order to make a stop, because in my program i open up a text file and they need time to read, but whenever i hit the button enter it just goes to the next line, or leave a space and hit enter, that doesnt count as a char it seems,
how can i imply pressing enter to this function? getchar() - cin.get() or cin.ignore() doesnt seem to be working.