I’ve just realized that there is a bug in my program. The line that reads [B]if ( RT = “Really Terrible”)[/B] should read [B]if ( RT == “Really Terrible”)[/B] Otherwise, the program won’t compile under G++.
Just for fun, I’ve made a few other changes:
using namespace std;
cin >> RT;
if ( RT == "Really-Terrible")
cout << "It's a Really Terrible menu to replace a Really Really Terrible menu on the Really Terrible device.
cout << "No freedom for you!
" << endl;
The new version accepts standard input, so you should be able to get both messages. I won’t tell you how, but if you know how to compile this simple code, you’ll be able to figure it out.