C++数字转string【不支持C++11的状况下,使用to_string】

目前只有C++11标准下才支持to_string函数 所以在低版本的编译器环境下 能够经过模板函数本身构建一个to_stringspa 1、创建一个头文件stdtostring.h内容以下ip #ifndef STDTOSTRING_H #define STDTOSTRING_H #include <string> #include <sstream> #include <iomanip> usi
相关文章
相关标签/搜索