登 录
c语言的方法
先开辟缓冲区,然后sprintf
atoi, itoa
C++中可以采用字符串流
比如convert << 4 << "x = " << 5;
参考《C++ primer》中文版第四版 8.5节 字符串流
抱歉!评论已关闭.