Need help changing inputs from uppercase to lowercase

got it
Last edited on
It would help if you mentioned what the problem is.
Try to make a string and add the character into the string.

1
2
3
4
5
string newString = "";
for (int i = 0; i < userString.length(); ++i)
	{
		newString += tolower(userString[i]);
	}
I'm not sure how I'm supposed to loop tolower in a queue/string or make this change uppercase letters to lowercase when the program is ran and executed.
Last edited on
Topic archived. No new replies allowed.