#include <algorithm>
#include <string>
std::string str = "Hello World";
std::transform(str.begin(), str.end(),str.begin(), ::toupper);
More Related Contents:
- how to change to c code while using for loop and array
- What is the difference between palindrome permutation and permutation? [closed]
- How to convert an instance of std::string to lower case
- Parsing a comma-delimited std::string [duplicate]
- Conveniently Declaring Compile-Time Strings in C++
- How to convert a number to string and vice versa in C++
- Why is conversion from string constant to ‘char*’ valid in C but invalid in C++
- Why does calling c_str() on a function that returns a string not work?
- How to find and replace string?
- Two string literals have the same pointer value?
- How do I properly use std::string on UTF-8 in C++?
- how to pre-allocate memory for a std::string object?
- How to change string into QString?
- Implicit conversion from char** to const char**
- Assign a nullptr to a std::string is safe?
- Comparing strings lexicographically
- How to pass a vector of strings to execv
- Copy a streambuf’s contents to a string
- c++ sizeof( string )
- Issue with cin when spaces are inputted, using string class
- std::vector to string with custom delimiter
- Why can’t the switch statement be applied to strings?
- Convert char * to LPWSTR
- What is the difference between string::at and string::operator[]?
- C++ Extract number from the middle of a string
- Parse string containing numbers into integer array
- C++ Passing std::string by reference to function in dll
- Concatenate compile-time strings in a template at compile time?
- C++ most efficient way to convert string to int (faster than atoi)
- How do I include the string header?