#include <string.h>
char *strcat(char *dest, const char *src);
#include <stdio.h>
#include <string.h>
int main ()
{
char buf [64] = "hello world";
printf ("%s", buf);
strcat (buf, "\n");
printf ("%s", buf);
return (0);
}
[beyes@localhost string]$ ./strcat.exe
hello worldhello world
[beyes@localhost string]$ /*换行了*/
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |