Don't use system("Pause"). Read the article on why system() is evil
for more information. Instead use:
cout << "Press ENTER to continue."<<endl;
do c = getchar();
while ((c != '\n') && (c != EOF))
} //end PressEnterToContinue
I had your exact same problem. I tried using toupper() and tolower(), but they only PRINT the uppercase and lowercase (for me, this is useless, because I am trying to convert it to ALL ONE CASE to pass it as variable value).
Look more into the advice you were given and the types of functions (and data) you are trying to use. Then you will understand L B's query. Right now, I am fighting the urge to laugh because I was once in your shoes (and still kinda am) lol. I think this will persist as long as we are students, which, given that this is computer SCIENCE, will be as long as we live, until we decide we no longer want to learn. Science is ALL ABOUT making mistakes, observations on those mistakes, and working to correct them.
Oh, and you REALLY need help on data types. s[i] is an element of array s. (Or, since C-style strings are just arrays of characters, s[i] == ith
character of string s.) Look into data types (don't ignore them!) and you will get this! Take L B's advice on this one...