![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++编程
vincent-fan
Starry starry night
展开
-
[C++基础] int to string
#include #include #include using namespace std; int main(void) { int i=1011; string c; ostringstream oss; oss<<i; c=oss.str(); cout<<c<<endl; return 0; }原创 2013-06-28 16:08:27 · 261 阅读 · 0 评论 -
[C++基础] 时间行刷新
#include #include using namespace std; class Time { int h,m,s; public: //Time():h(0),m(0),s(0){} //使用了初始化列表和参数默认值的构造函数 Time(int h=0, int m=0, int s=0):h(h),m(m),s(s) { //局部优先原创 2013-06-29 18:10:07 · 458 阅读 · 0 评论