删除字符串前n个字符
#include <stdio.h>
void del_arr(int n, char *p)
{
int i;
for(i = 0; p[i] != '\0'; i++)
p[i] = p[i+n];
for(i = 0; p[i] != '\0'; i++)
printf("%c", p[i]);
}
int main()
{
char s[] = "reading";
char b[] = "Programmer Peking University Online Judge";
del_arr(2, b+11);
return 0;
}