Dev C++中使用to_string函数 原理: C++中的 to_string()函数将数值转换成字符串形式,不支持C++ 11标准的编译器可能不支持to_string() 步骤:工具–》编译器选项–》输入:-std=c++11