题目内容
【8-4】(2)程序填空程序功能:将两个字符串连接为一个字符串,不许使用库函数strcat。填空完成本题。#include #include "string.h"void JOIN(char s1[ ],char s2[ ] ){int i,j;【1】;for (i=0; 【2】;i++)s1[i+j]=s2[i];s1[i+j]= 【3】 ;}int main ( ){char str1[80],str2[40];gets(str1);gets(str2);puts(str1);puts(str2);【4】;puts(str1);return 0;}
查看答案
搜索结果不匹配?点我反馈
更多问题