Trying to test if input is "TF" or "MC". The while condition keeps coming out as true even though argument is written: line != "TF" || line != "MC"
Not understanding how the loop keeps repeating even though I input TF or MC. I have also verified that the tranform method is making the string capital.
do {
cout << "\nEnter the Question type (TF) for True/False or (MC) for Multiple Choice:\n";
getline(cin, line);
transform(line.begin(), line.end(), line.begin(), ::toupper);
} while (line != "TF" || line != "MC");
I expected the loop to only initiate once and exit.