#include<stdio.h>
void change(char *str)
{
char *p=str;
while (*p!='\0')
{
if (isupper(*p)) *p='A'+((*p+4)-'A')% 26;
else *p='a'+((*p+4)-'a')% 26;
p++;
}
}
void insert (char *str1,char *str2)
{
char *p=str1;
char *q=str2;
while(*p!='0')
{
*q=*p;
q++;
*q=' ';
p++;
q++;
}
*q=*p;
}
int main()
{
char str[255],str1[255];
while (gets(str))
{
change (str);
insert (str,str1);
printf("%s\n",str1);
}
}
请问一下,为什么无法输出结果