#include#include int main() { std::string original = "hello world"; std::string uppercase = original.toUppercase(); std::cout << uppercase << std::endl; return 0; }
HELLO WORLDIn this example, the original string "hello world" is converted to uppercase using the toUppercase() function and the result is stored in the new string "uppercase". The output of the program is the new uppercase string. Package/Library: This function is a member function of the CPP Standard Library "string" class. It does not require any external library or package to be included.