Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void convert(string& s){
- for(int i= 0;i<s.length();i++){
- s[i]= toupper(s[i]);
- }
- }
- int main ()
- {
- setlocale(0,"");
- string s;
- cout<<"Enter english string\n";
- getline(cin, s);
- convert(s);
- cout<<s<<"\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement