fork(2) download
  1. #include<iostream>
  2. #include<string>
  3. #include<iterator>
  4. using namespace std;
  5. int main()
  6. {
  7. string a("hello world");
  8. for(auto it = a.begin(); it != a.end() && !isspace(*it); it++ )
  9. {
  10. *it = toupper(*it);
  11. }
  12. cout<<a;
  13. }
Success #stdin #stdout 0s 3472KB
stdin
Standard input is empty
stdout
HELLO world