摘要: 1 #include <iostream> 2 #include <cstring> 3 4 using namespace std; 5 6 class Point 7 { 8 private: 9 int x,y; 10 public: 11 Point(int,int); 12 void Se 阅读全文
posted @ 2020-04-21 20:24 Conan-jine 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstring> 3 4 using namespace std; 5 6 class Person 7 { 8 private: 9 char Name[10]; 10 int Age; 11 public: 12 Person( 阅读全文
posted @ 2020-04-21 18:14 Conan-jine 阅读(441) 评论(0) 推荐(1) 编辑
摘要: 1 #include <iostream> 2 #include <cstring> 3 4 using namespace std; 5 6 class Person 7 { 8 protected: 9 char Name[10]; 10 char Sex; 11 int Age; 12 pub 阅读全文
posted @ 2020-04-21 15:42 Conan-jine 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 #include <cstring> 3 4 using namespace std; 5 6 class Person 7 { 8 private: 9 char Name[20]; 10 char Sex; 11 int Age; 12 publi 阅读全文
posted @ 2020-04-20 16:58 Conan-jine 阅读(370) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 3 using namespace std; 4 5 void add(); 6 void sub(); 7 void mul(); 8 void div(); 9 10 int main() 11 { 12 int choice=0; 13 cout 阅读全文
posted @ 2020-03-29 16:09 Conan-jine 阅读(960) 评论(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-29 14:04 Conan-jine 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 3 using namespace std; 4 const double PI=3.14; 5 6 class Ellipse 7 { 8 private: 9 int x,y; 10 double a,b; 11 double area; 12 p 阅读全文
posted @ 2020-03-29 12:29 Conan-jine 阅读(387) 评论(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-29 00:01 Conan-jine 阅读(420) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑