fork(1) download
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5.  
  6.  
  7.  
  8.  
  9. char usrtext(char *text, int i)
  10. {
  11. int val = strlen(text) - i;
  12. return *(text+val);
  13. }
  14.  
  15.  
  16. int main()
  17. {
  18.  
  19.  
  20. char myt[] = "Hello this world";
  21.  
  22.  
  23. for(int i=1; i!=strlen(myt)+1; i++)
  24. {
  25. cout << usrtext(myt, i);
  26. }
  27. cout << endl;
  28.  
  29. system("pause");
  30. return 0;
  31. }
Success #stdin #stdout #stderr 0s 16064KB
stdin
Standard input is empty
stdout
dlrow siht olleH
stderr
sh: 1: pause: not found