时间:2010-07-24 11:01:51

标签: c string string-concatenation

3 个答案:

答案 0 :(得分:7)

答案 1 :(得分:4)

答案 2 :(得分:0)

您可以轻松使用sprintf

char one[200] = "data"; // first bit of data
char two[200] = "more data"; // second bit of data
char three[400]; // gets set in next line
sprintf(three, "%s %s", one, two); // this stores data
相关问题