i wanna change the capital cin to lower case for the input , for example if cin>> one one=R it should be r so it convert it automatically
the transform is the right way to do it, i think, you just need to include the algorithm library
#include #include #include std::transform(one.begin(), one.end(), one.begin(), ::tolower); std::transform(two.begin(), two.end(), two.begin(), ::tolower);