I'm trying to come up with a small block of code that simply takes a character value that is input by the user and then use an "if" statement to determine what is excecuted depending on what is entered.
I just started C++ this week and have no prior experience so please be gentle! :)
This is wrong, but something to the effect of this;
int input;
cout << "Enter t or f: ";
cin >> input;
if(input = t) {
cout << "True";
if(input = f) {
cout << "False";
// if anything other than t or f is entered, displays error message and loops back for a correct response.