摘要: #include<iostream> using std::cout; using std::endl; class point { public: point(int x0=0, int y0=0); point(const point &p); ~point()=default; int get 阅读全文
posted @ 2022-10-02 23:32 戴鲁 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <iomanip> using std::cout; using std::endl; class Clock { public: Clock(int h = 0, int m = 0, int s = 0); Clock(const Clo 阅读全文
posted @ 2022-10-02 23:23 戴鲁 阅读(3) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> class X{ public: X(); ~X() ; X(int m); X(const X& obj); X(X&& obj) noexcept; void show() const; private: int data; }; X::X(): data 阅读全文
posted @ 2022-10-02 23:23 戴鲁 阅读(1) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <iomanip> class rectangle{ public: rectangle(double l=2.00,double w=1.00):length{l },width{w} {}; rectangle(const rectang 阅读全文
posted @ 2022-10-02 23:22 戴鲁 阅读(3) 评论(0) 推荐(0) 编辑