/* 连接2个字符串 */
#include <stdio.h>
int main(void)
/* 实现了把strb 添加到stra 后面 */
{
char stra[81 + 80], strb[81];
int i, j;
printf("Enter stra: ");
gets(stra);
printf("Enter strb: ");
gets(strb);
i = j = 0;
while(stra[i])
i++;
while(strb[j])
stra[i++] = strb[j++];
stra[i] = '\0';
printf("Output new string: %s\n", stra);
getchar();
return 0;
}