摘要: 1.xinpian.h #include using namespace std; class xinpian{ public: xinpian(float M,float N); void jia(); private: int m,n; }; class xinpianA:public xinpian{ publ... 阅读全文
posted @ 2018-06-07 21:35 无敌的宫本 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1.#include #include #include using namespace std; void output1(vector &); void output2(vector &); int main() { vectorlikes, dislikes; paintings,anime,sport,sportsman,etc) likes.push_back... 阅读全文
posted @ 2018-05-23 21:35 无敌的宫本 阅读(195) 评论(0) 推荐(0) 编辑
摘要: //Complex.h class Complex { public: Complex( double at, double bt) :a(at),b(bt) {} Complex( double at) { a=at; } void add(Complex &num); void show(); ... 阅读全文
posted @ 2018-04-23 22:54 无敌的宫本 阅读(153) 评论(1) 推荐(0) 编辑
摘要: #include using namespace std; class rect{ public: rect(float L=1.0,float W=1.0){ length=L; wide=W; } area(){ cout>length>>wide; rect x(length,wide... 阅读全文
posted @ 2018-04-11 10:27 无敌的宫本 阅读(129) 评论(3) 推荐(0) 编辑
摘要: (1) #include using namespace std; int main() { char i; cout>i; if(i=='A') cout using namespace std; int main() { char i; cout>i; switch(i){ case 'A': cout using namespace std; int main() { int i,n; ... 阅读全文
posted @ 2018-03-24 22:48 无敌的宫本 阅读(184) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main() { int day; cin>>day; switch(day) { case 1: case 2: case 3: case 4: case 5:cout using namespac... 阅读全文
posted @ 2018-03-16 21:33 无敌的宫本 阅读(90) 评论(0) 推荐(0) 编辑