摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
//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(); ... 阅读全文
摘要:
#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... 阅读全文
摘要:
(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; ... 阅读全文
摘要:
#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... 阅读全文