I joined here after reading over the long posting on the troubles with system('') anything, this function being bad one to use. I have worked through adding in one of the suggestions for an alternative to system('pause') and it works with a "but".
The "but" is that the console stays in a mode where I cannot right click on it. I use the select all and copy/paste a lot and with the alternate suggestions, this feature seems unavailable, becoming available only when I use the system('pause')
I used this:
1 2 3 4 5 6
char c4 = 0xdf;
cout << " Thank you for giving this program a go. Have a nice day :->" << "\n" << "\n";
cin.sync();
cout << "Press ENTER to exit..." << "\n";
cout << " "<<c4<<c4<<c4<<c4<<c4<<"\n";
cin.ignore( std::numeric_limits<std::streamsize>::max(), '\n' );
I would like to know (other than creating a text file) if there is any work around for this loss of functionality?