fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. string s(" hjh$i*i ");
  7. int len = s.size();
  8. if(len != 0){
  9. auto it = s.begin();
  10. int i=0;
  11. while(i!=len){
  12. *it = toupper(*it);
  13. ++it;
  14. i++;
  15. }
  16. }
  17. cout << s << endl;
  18. return 0;
  19. }
Success #stdin #stdout 0s 4564KB
stdin
Standard input is empty
stdout
   HJH$I*I