So basically I have a string array called QandA[2][55].
QandA[0][0-55]
contains questions (0-55 is the range)
QandA[1][0-55]
contains the answer to these questions
Now I have to make a loop that will transfer all the strings from QandA[1][1-55]
to QandA[2][1-55]
in the same order but lowercase. I have tried this code but it doesn't seem to work. I've also checked that the string arrays work by using a loop to cout all the strings from 0-55. My code that has an error is shown below.
for (int i = 0; i < 55; i++) {
QandA[2][i] = tolower(QandA[1][i]);
}
This gives me an error saying "No suitable conversion from std::string to int exists" which I don't understand because I assumed tolower was for string values, not int.