C语言之strcat函数
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char str1[] = "安徽粮食";
char str2[] = "工程职业学院";
strcat(str1, str2); // hello world
printf("%s\n", str1);
system("pause");
return 0;
}
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char str1[] = "安徽粮食";
char str2[] = "工程职业学院";
strcat(str1, str2); // hello world
printf("%s\n", str1);
system("pause");
return 0;
}