i have an input file that i can open the correct name and everything just when i right the switch i need it to say the first letter of that word. example: texas
but since there are two names that start with "t" i need to make an if/else statement it says special case for 't' and test the second character with the if/else. im totally confused with that part.
You got the first letter with (inFile >> letter;) so when you want to get the second letter you just need to use (inFile >> letter;) once more and now letter is the second letter.
use a switch to accomplish.
= you must test the first integer using the at method.
-you will have to have a special case for T and test the second character with an if/else to accurately set the message.
so i have two input names that start with T and i need to use an if else to get the second letter from the T names . ex: Texas, Tennessee,
i need an if else so that the message can be set for both instead of just for one since they both start with T.