- 博客(2)
- 收藏
- 关注
原创 cout输出时非整数结果及精度设置的小测试
cout 输出时常会输出非理想结果 部分程序代码,运算1.5*3+3.5*3=15 Buy Buy::operator+(const Buy & B) { Buytmp; tmp.m_total= m_total + B.m_total; // cout.precision(2);
2013-02-15 13:19:00
250
原创 关于默认构造函数的尝试
代码: /** *时间:2013/1/24 *功能:使用默认参数的构造函数 *目的:试验默认构造函数 */ #include using namespace std; class Box { private: intheight; intwidth;
2013-02-15 13:03:27
145
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人