6.6 实现一个函数,将字符串连接起来
本题要求实现一个函数,将两个字符串连接起来。
函数接口定义:char *str_cat( char *s, char *t );
函数str_cat应将字符串t复制到字符串s的末端,并且返回字符串s的首地址。
裁判测试程序样例:
#include <stdio.h>
#include <string.h>
#define MAXS 10
char *str_cat( char *s, char *t );
int main()
{
char *p;
char s
原创
2020-06-10 16:56:30 ·
1966 阅读 ·
0 评论