Guest User

Untitled

a guest
Dec 7th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <vector>
  4.  
  5. using std::cout; using std::cin;
  6. using std::vector;
  7. using std::string;
  8. using std::endl;
  9.  
  10. int main() {
  11. string line;
  12. getline(cin, line);
  13. for(auto c = line.begin(); c!=line.end() && !isspace(*c); ++c ){
  14. *c = toupper(*c);
  15. }
  16. cout << line << endl;
  17. return 0;
  18. }
Add Comment
Please, Sign In to add comment