摘要: 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) 编辑