功能:字串連結
/* strcat example */
#include <stdio.h>
#include <string.h>
int main ()
{
char str[80];
strcpy (str,"these ");
strcat (str,"strings ");
strcat (str,"are ");
strcat (str,"concatenated.");
puts (str);
return 0;
}
參考出處:
http://www.cplusplus.com/reference/cstring/strcat/?kw=strcat
http://www.cplusplus.com/reference/cstring/strcat/?kw=strcat
沒有留言:
張貼留言