- 博客(13)
- 收藏
- 关注
原创 7.12
#include #includeclass Matrix { public: Matrix(); //构造函数 friend Matrix operator+(Matrix&,Matrix&); //声明重载运算符"+" friend istream& operator>>(ist
2015-06-27 18:12:46 609
原创 7.11
#include using namespace std;class Date { public: Date(){} Date(int m,int d,int y) { month=m; day=d; year=y; } void print() { cout<<year<<"."<<month<<"."<<day<<endl; } Date
2015-06-27 15:54:17 418
原创 7.10
#include #includeconst int r=2; const int c=3;class A { public: A(); //构造函数 A(int a,int b,int c,int d,int e,int f); void get_A( ); //键盘输入数组的
2015-06-26 18:20:44 437
原创 7.9
#include #includeusing namespace std;const int r=2; const int c=3;class A { public: A(); //构造函数 A(int a,int b,int c,int d,int e,int f); void get
2015-06-26 17:58:12 444
原创 5.18
#include #include using namespace std; class Person //声明基类Person{ public: void input() { cout<<"请输入编号:"; cin>>number; cout<
2015-06-11 01:27:50 465
原创 magic(4*4)
#include#includeusing namespace std;class magic{public: void getdata(int st,int f,int s) { step=st; first=f; sum=s; } void setfirstmagic() { int i,j;
2015-06-04 12:36:41 678
原创 4.22
#include #include using namespace std; class point { private: int x; int y; public: point(int m,int n); //声明构造函数 friend void dist(point &a,point &b);
2015-06-04 11:16:57 407
原创 4.21
#include #include using namespace std; class Student { private: int number; string name; float mark; static float sum; static float aver; static int total;
2015-06-04 00:38:25 392
原创 4.20
#include using namespace std; class book {private: int qu; int price; public: book(int q,int p) { qu=q; price=p; } void print() { cout<<qu*price<<endl; } }
2015-06-04 00:20:32 505
原创 4.19
#include using namespace std; class book {private: int qu; int price; public: book(int q,int p) { qu=q; price=p; } void print() { cout<<qu*price<<endl; } }
2015-06-04 00:09:20 420
原创 4.18
#include using namespace std; int a=1; class Student { int number; float english; public: Student(int n,float e) { number=n;
2015-06-03 17:49:58 452
原创 4.17
#include using namespace std; class Student { int number; float english; float math; float PE; public: Student(int n,float e,float m,float p) { nu
2015-06-03 17:43:07 490
原创 3.24
#includeusing namespace std;class Date{private: int year,y; int month,m; int day,d;public:Date(int y,int m,int d){ year=y; month=m; day=d;}Date(){}void setDate(int o,int p,int q){
2015-06-03 17:35:00 404
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人