摘要: 也就是实现类似下面的功能: 1CString str;2double d = 10.24;3str.Format("d=%.2f",10.24); 其实用c++标准库来实现也比较简单,代码如下: #include using namespace std;..ostringstream buf;double d = 10.24;buf<<"d="<<d<<endl; 则buf.str()得到的就是一... 阅读全文
posted @ 2007-07-18 23:56 拿走不谢 阅读(2339) 评论(1) 推荐(0)