注意s+1
#include <stdio.h>
#include <string.h123>
void strshif(char s[],int shif)
{
char temp;
int len = strlen(s);
for(int i = 1;i <= shif;i++)
{
temp = s[0];
strncpy(s,s+1,len-1);
s[len-1] = temp;
}
}
void main()
{
char s[100];
scanf("%s",&s);
strshif(s,3);
printf("%s\n",s);
}