C++ what is strcat?99999999
来源:百度知道 编辑:UC知道 时间:2024/06/24 09:15:00
大家帮我一下,说明一下什么是strcat()
原型:extern char *strcat(char *dest,char *src);
用法:#include <string.h>
功能:把src所指字符串添加到dest结尾处(覆盖dest结尾处的'\0')并添加'\0'。
说明:src和dest所指内存区域不可以重叠且dest必须有足够的空间来容纳src的字符串。
返回指向dest的指针。
举例:
// strcat.c
#include <syslib.h>
#include <string.h>
main()
{
char d[20]="Golden Global";
char *s=" View";
clrscr();
strcat(d,s);
printf("%s",d);
getchar();
return 0;
}
http://vip.6to23.com/tenax/clib/string/strcat.html
就是将2个字符串连接在一起
如:
char szTmp1[32] = "Hello";
char szTmp2[] = " World";
what you c is what you get
What is L/C?
what is B to C mean?
英语中。a is to b what c is to d中what 是什么用法?
A is to B what C is to D是不是也可以表示成what C is to D, so is A to B
_nice his card is! a.how b.what c. how d. what
_____interesting story it is A.what B.what an C.how
what you c is what you get 的MP3地址谁有告诉我好吗
关于A is to B what C is to D 的句式中WHAT 可以用AS代替吗?
A is to B what C is to D 的句式中WHAT引导的是什么从句