Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- using std::cout; using std::cin;
- using std::vector;
- using std::string;
- using std::endl;
- int main() {
- string line;
- getline(cin, line);
- for(auto c = line.begin(); c!=line.end() && !isspace(*c); ++c ){
- *c = toupper(*c);
- }
- cout << line << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement