also, for example, we can use transform, so if our string name s, it will look like this:
transform(s.begin(),s.end(),s.begin(),::tolower)
if you wanna to convert string to uppercase you will just change ::tolower to ::toupper, idk maybe your idea works fastly, also thank you.
also, for example, we can use transform, so if our string name s, it will look like this:
transform(s.begin(),s.end(),s.begin(),::tolower)
if you wanna to convert string to uppercase you will just change ::tolower to ::toupper, idk maybe your idea works fastly, also thank you.