fork download
  1. #include <iostream>
  2. #include <string>
  3.  
  4. using namespace std;
  5.  
  6. void remodel(string & str){
  7. string ps = str;
  8. ps[0] = 'n';
  9. cout<<ps<<endl;
  10. }
  11.  
  12. int main(){
  13. string str = "Hello world";
  14.  
  15. remodel(str);
  16.  
  17. cin.get();
  18. return 0;
  19. }
Success #stdin #stdout 0s 4380KB
stdin
Standard input is empty
stdout
nello world