摘要:
#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:31
戴鲁
阅读(34)
评论(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
戴鲁
阅读(14)
评论(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:22
戴鲁
阅读(44)
评论(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
戴鲁
阅读(48)
评论(0)
推荐(0)
浙公网安备 33010602011771号