摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
#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 阅读全文
摘要:
#include <iostream> #include <iomanip> class rectangle{ public: rectangle(double l=2.00,double w=1.00):length{l },width{w} {}; rectangle(const rectang 阅读全文