摘要: #include<iostream>using namespace std;class cal{public: virtual int getresult() { return 0; } int num1; int num2;};class add:public cal{public: int ge 阅读全文
posted @ 2023-06-04 16:22 八千里路云和月色 阅读(18) 评论(0) 推荐(0)
摘要: #include<iostream>#include<string>using namespace std;class build{ friend void goodgay1(build *build); friend void goodgay(build &build);public: strin 阅读全文
posted @ 2023-05-31 17:06 八千里路云和月色 阅读(22) 评论(0) 推荐(0)
摘要: #include<iostream>#include<string>using namespace std;class person{public: static int A;private: static int B; int c;public: void show() { cout<<A<<en 阅读全文
posted @ 2023-05-30 20:33 八千里路云和月色 阅读(13) 评论(0) 推荐(0)
摘要: #include<iostream>#include<string> using namespace std; class point { private: int x,y; public: void setx(int a) { x=a; } int getx() { return x; } voi 阅读全文
posted @ 2023-05-29 23:39 八千里路云和月色 阅读(28) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;class car{private: int power; int seat;public: car(int power,int seat) { this->power=power; this->seat=seat; } v 阅读全文
posted @ 2023-05-23 22:08 八千里路云和月色 阅读(19) 评论(0) 推荐(0)
摘要: #pragma once#include<iostream>#include<string>using namespace std;class student{public: student(void); ~student(void); void setvalues(int n,string str 阅读全文
posted @ 2023-05-22 22:04 八千里路云和月色 阅读(17) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;class date;class time{public: time(int,int,int); void display(date &);private: int hour,minu,sec;};class date{pu 阅读全文
posted @ 2023-05-22 16:08 八千里路云和月色 阅读(17) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;class cube{private: int lengh; int width;public: int geta(); void get(int a,int b) { lengh=a; width=b; } void sh 阅读全文
posted @ 2023-05-20 22:29 八千里路云和月色 阅读(19) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;class rect{public: int len,wid; rect(int l,int w) { len=l; wid=w; } int area() { return len*wid; } };void main() 阅读全文
posted @ 2023-05-19 10:57 八千里路云和月色 阅读(11) 评论(0) 推荐(0)
摘要: 一, #pragma once#include<iostream>using namespace std;class time_user{ int h,m,s;public: time_user(void); ~time_user(void); void timeset(); void timedi 阅读全文
posted @ 2023-05-16 21:10 八千里路云和月色 阅读(26) 评论(0) 推荐(0)