写一个函数,将两个字符串连接在一起成为一个字符串
(2011-04-18 21:18:26)
标签:
it |
分类: c语言和汇编语言 |
写一个函数,将两个字符串连接在一起成为一个字符串, 例如:char str1[] = "abc", char str2[] = "def",然后将这两个字符串连接在一起后为"yfwxyy"并输出.
// cat.cpp : Defines the entry point for the console
application.
//
#include "stdafx.h"
#include <STRING.h>
#include <stdio.h>
void fun_strcat(char str1[],char str2[])
{
}
int main(int argc, char* argv[])
{
}
后一篇:下面函数有错吗?有请改正