【发布时间】:2012-06-28 16:41:58
【问题描述】:
可能重复:
Alternative to itoa() for converting integer to string C++?
How to convert a number to string and vice versa in C++
Append an int to a std::string
我想将整数转换为字符串,有人帮我做这些转换吗?
itoa(*data->userid,buff1,10);
itoa(*data->userphone,buff2,10);
【问题讨论】:
-
对于在下面发布答案的每个人,与其提供另一个副本并追逐 SO 分数,不如投票将其作为副本关闭。