摘要: #include <sstream>#include <string>using namespace std;//具体函数有些忘了,不过使用sstream转换数字肯定//比自己写好一些。因为可以写模板转换float数字。string int_to_string(int num){sstream<string > ss;ss << num;return ss.ToString();}//这是模板函数,可能语法上有不正确的地方,你可以查查书籍就可以了,//重要的不是语法,而是思想。template<class T>string num_t 阅读全文
posted @ 2012-03-29 11:32 笑笑小白 阅读(3560) 评论(0) 推荐(0)