I need to make a program that can accept a string input(I've already done this) and make all the letters lowercase. After this, the program needs to match up the string variable with other choices. I would try to make some kind of header file, but I don't really know how.
Example: Enter a string
Makes all letters lowercase
reads to see if it matches choices
if(string == "answer1")
else if(string == "answer2")
else if(string == "answer1")
gives out correct input
I had already set up a program to work like this, but it is extremely long.
if(x == "Answer")
else if(x == "answer")
This isn't really a serious issue. Although, if someone can give me a soulution, I will be greatly happy.