#include <stdio.h>
//字符串连接函数
void strContact(char *result, const char *str1, const char *str2)
{
    int i, j;
    for (i = 0; str1[i]; i++){
        result[i] = str1[i];
    }
    for (j = 0; str2[j]; j++){
        result[i + j] = str2[j];
    }
    result[i + j] = 0;
}
void main()
{
    const char* S = "Hello";
    const char* T = "World";
    char str[64] = {0};
    strContact(str, S, T);
    printf("%s\n", str);
}