2013年5月27日
摘要: 考虑下面的一段代码: 1 #ifndef RATIONAL_H 2 #define RATIONAL_H 3 #include<iostream> 4 using namespace std; 5 6 class Rational 7 { 8 public: 9 Rational(int nn = 1, int dd = 0)10 {11 n = nn;12 d = dd;13 }14 void print()15 {16 cout<<this->n<<" "<<this-d<<endl;17 }... 阅读全文
posted @ 2013-05-27 10:22 Sophia-呵呵小猪 阅读(273) 评论(0) 推荐(0) 编辑