摘要: 1 #include <iostream> 2 #include <string> 3 4 using namespace std; 5 6 class Person 7 { 8 private: 9 string name; 10 int age; 11 char sex; 12 public: 阅读全文
posted @ 2020-03-28 23:34 Conan-jine 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 3 using namespace std; 4 5 class Date 6 { 7 private: 8 int year; 9 int month; 10 int day; 11 public: 12 Date(){year=1900;month 阅读全文
posted @ 2020-03-28 18:04 Conan-jine 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <string> 3 4 using namespace std; 5 6 class Dog 7 { 8 private: 9 string name; 10 int age; 11 char sex; 12 double weig 阅读全文
posted @ 2020-03-28 17:00 Conan-jine 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 3 using namespace std; 4 5 class Trapezium 6 { 7 private: 8 int x1,y1,x2,y2,x3,y3,x4,y4; 9 public: 10 void initial(){x1=0,x2=0 阅读全文
posted @ 2020-03-28 16:59 Conan-jine 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 3 using namespace std; 4 5 class Trapezium 6 { 7 private: 8 int x1,y1,x2,y2,x3,y3,x4,y4; 9 public: 10 void initial(){x1=0,x2=0 阅读全文
posted @ 2020-03-28 16:58 Conan-jine 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstdio> 3 4 using namespace std; 5 6 class MyTime 7 { 8 private: 9 int hour; 10 int minute; 11 int second; 12 public 阅读全文
posted @ 2020-03-28 16:56 Conan-jine 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 3 using namespace std; 4 5 class Weekday 6 { 7 private: 8 int num; 9 public: 10 void SetDay(){cin>>num;return;} 11 void IncDay 阅读全文
posted @ 2020-03-28 16:51 Conan-jine 阅读(223) 评论(0) 推荐(0) 编辑