Check out example codes for "string to upper c++". It will help you in understanding the concepts better.

Code Example 1

std::string data = "This is a sample string.";
// convert string to upper case
std::for_each(data.begin(), data.end(), [](char & c){
c = ::toupper(c);
});

Learn ReactJs, React Native from akashmittal.com