fork(4) download
  1. #include <iostream>
  2. #include <string>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. int main() {
  7. std::string hk = "hong konG";
  8. std::transform(hk.begin(), hk.end(), hk.begin(), ::toupper);
  9. cout << hk << endl;
  10. return 0;
  11. }
Success #stdin #stdout 0s 3428KB
stdin
Standard input is empty
stdout
HONG KONG