I can accept that system('') is bad, but...

Hey oh

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?
Last edited on
Try right click the title, "Edit" submenu.
Last edited on
@helios

I saw you do the ascii facepalm, and rather I feel that way right now :)

Thank you, I honestly had no idea the title had its own menu's or sub menu's for that matter. I guess I have grown too accustomed to mouse actions.

Topic archived. No new replies allowed.