Horje
convert all strings in vector to lowercase or uppercase c++ Code Example
convert all strings in vector to lowercase or uppercase c++
for(std::string &s : stringVector){
    std::transform(s.begin(), s.end(), s.begin(), 
        [](char c){ return std::toupper(c); }); // for lowercase change "toupper" -> "tolower" 
}




Cpp

Related
arduino falling edge Code Example arduino falling edge Code Example
opencv c++ feature detection Code Example opencv c++ feature detection Code Example
opengl draw house using glut c++ Code Example opengl draw house using glut c++ Code Example
all permutations with repetition C++ Code Example all permutations with repetition C++ Code Example
error uploading arduino code Code Example error uploading arduino code Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11