document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. void LoopMove(char* pStr, int steps);
  5.  
  6. int main(int argc, char** argv) {
  7.     char a[] = "1234567";
  8.     LoopMove(a,2);
  9.     cout<<a<<endl;
  10.  
  11.     system("pause");
  12.     return 0;
  13. }
  14.  
  15. void LoopMove(char* pStr, int steps)
  16. {
  17.     int n = strlen(pStr) -steps;
  18.     char tmp[1000];
  19.     strcpy(t\\mp,pStr+n);
  20.     strcpy(tmp+steps,pStr);
  21.     *(tmp + strlen(pStr))=\'\\0\';
  22.     strcpy(pStr,tmp);
  23. }
');