#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/*
两个字符串(“hello ”,“thundersoft !”)连接程序
*/
int main()
{
/*char* str1 = "hello ";
char* str2 = "thundersoft!";
char str3[50] = "";
int i = 0,j = 0, k = 0;
while (str1[i])
{
str3[k++] = str1[i++];
}
while (str2[j])
{
str3[k++] = str2[j++];
}*/
char str1[50] = "hello ";
char* str2 = "thundersoft!";
strcat(str1, str2);
printf("%s\n", str1);
return 0;
}