#include <iostream>
using namespace std;
void LoopMove(char *pStr,int step)
{
int n = strlen(pStr)-step;
char *p = pStr+n;
char temp[20] = {0};
printf("pStr+n = %c/n",*(pStr+n));
strcpy(temp,pStr+n);
strcpy(temp+step,pStr);
//最后一个字符赋值为0
temp[strlen(pStr)] = '/0';
printf("temp = %s/n",temp);
}
void main()
{
char *str = "abcdefghi";
int step = 2;
LoopMove(str,step);
printf("str = %s/n",str);
}