当前位置:编程学习 > C/C++ >>

C语言题目

Write a pointer version of the function strcat that we showed in Chapter 2: strcat(s, t) copies the string t to the end of s.
追问:#include <stdio.h>
#include <string.h>
void main()
{
       char s[40]="I'm a student!",t[20]="you're a teacher!";
       strcat(s,t);
       puts(s);
}这样写行不?呃、、、你给我那个程序没法运行啊  有错误、、、
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,