摘要: class fraction{private:int above; //分子int below; //分母void reduction(); //约分fraction makeCommond(fraction); //通分public:fraction(int a=0,int b=1){ //构造函数 above=a;below=b;}fraction add(fraction); //两分数相加... 阅读全文
posted @ 2010-03-13 11:18 joe62 阅读(4162) 评论(1) 推荐(0) 编辑