摘要:
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
阅读(525)
评论(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
阅读(323)
评论(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
阅读(354)
评论(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
阅读(372)
评论(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
阅读(230)
评论(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
阅读(245)
评论(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
阅读(241)
评论(0)
推荐(0)

浙公网安备 33010602011771号