You can test it yourself by downloading Dev C++. you don't have to be in your lab.
Converts the string from uppcase to lowercase. That way when you compare names JOHNSON=johnson = JoHnSoN. Otherwise they won't match.Code:transform(answer.begin(), answer.end(), answer.begin(), ::tolower);
When you run your programs some places make your window appear and then close right away (if you aren't in a DOS window or terminal). This will leave it open until you press enter.Code:std::cin.ignore(); std::cin.get()