[求助]串的插入怎么运行不了啊
#include "stdio.h"
#define MAX 50
typedef struct {
char ch[MAX];
int len;
}SString;
void StrInsert(SString *s,int pos,SString *t)
{
int i;
for(i=s->len+t->len-1;i>=t->len+pos;i--)
s->ch[i]=s->ch[i-t->len];
for(i=0;i<t->len;i++)
s->ch[i+pos]=t->ch[i];
s->len=s->len+t->len;
}
void main()
{
SString *s,*t;
int k,i;
char a[]="abcdef";
char b[]="UVW";
s=a;
t=b;
printf("input k:");
scanf("%d",&k);
StrInsert(s,k,t);
for(i=0;i<=MAX;i++)
printf("%c ",s->ch[i]);
}