Answers for "convert any string to uppercase in c++ with out built in function"

C++
0

convert whole string to uppercase c++

#include<bits/stdc++.h> 
using namespace std; 
  
int main() 
{ 
    string s = "Viet Nam"; 
    transform(s.begin(), s.end(), s.begin(), ::toupper);  //uppercase
    cout << s << endl; 
    return 0; 
}
Posted by: Guest on March-27-2021

Code answers related to "convert any string to uppercase in c++ with out built in function"

Browse Popular Code Answers by Language