摘要:
1 #include <iostream> 2 3 using namespace std; 4 5 class Matrix 6 { 7 private: 8 int a,b; 9 int arr[100][100]; 10 public: 11 Matrix() 12 { 13 for(int 阅读全文
摘要:
1 #include <iostream> 2 3 using namespace std; 4 5 class Complex 6 { 7 private: 8 double real; 9 double image; 10 public: 11 Complex(){real=0;image=0; 阅读全文
摘要:
1 #include <iostream> 2 #include <string> 3 4 using namespace std; 5 6 class Pet 7 { 8 private: 9 string name; 10 int age; 11 string color; 12 public: 阅读全文