怎么样链接两个char*型的字符串变量(字符串拼接)

主要使用两个函数函数 strcat和strcpycode strcat自己就是链接字符串的,可是要保证空间足够。字符串 int main() { char buff[1024]; memset(buff, 0, sizeof(buff)); const char *buff2 = " test"; strcpy(buff, "abc"); strcat(buff, buff2); pr
相关文章
相关标签/搜索