fork(35) download
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8. string str("hello world!");
  9. for (auto &c : str)
  10. c = toupper(c);
  11. cout << str;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3028KB
stdin
Standard input is empty
stdout
HELLO WORLD!