Postingan

Menampilkan postingan dengan label toupper

Algorithm C++ Toupper

Gambar
Algorithm C++ Toupper . But actually it is very easy to convert from char array to string. Using for_each std::for_each (str.begin (), str.end (), [] (char & c) { c = ::toupper (c); Basic of C++/ C++ Algorithm/C++ tutorials YouTube from www.youtube.com This method works in the similar manner to the first method. Toupper accepts a character as an argument (it actually accepts an integer, but the two are interchangeable) and will convert it to uppercase, and will return the uppercase character, in the form of an ascii integer, and leave the parameter unchanged. #include #include #include #include using namespace std ;