将数字类型转换为字符串

#include <string> #include <sstream> #include <iostream>ios template <class T> std::string to_string(T t, std::ios_base & (*f)(std::ios_base&)) {    std::ostringstream oss;    oss << f << t;    return
相关文章
相关标签/搜索