- 博客(28)
- 收藏
- 关注
原创 第六单元
#include iostream.h> class Point {public: Point(float x=0,float y=0); void setPoint(float,float); float getX() const {return x;} float getY() const {ret
2015-06-17 17:51:49
215
原创 第五章
#include using namespace std; class Student{ public: void get_value() {cin>>num>>name>>sex;} void display() { cout cout cout } private:
2015-06-17 17:13:27
201
原创 个人作业 第四章 t 6
#include using namespace std; class Complex{ public: Complex() { real=0; imag=0; } Complex(double r) { real=r; imag=0;
2015-06-17 16:19:09
318
原创 个人作业 第四章 t 5
#include using namespace std; class Matrix{ public: Matrix(); friend Matrix operator +(Matrix &,Matrix &); friend istream& operator >>(istream &,Matrix &); friend
2015-06-17 16:17:20
337
原创 个人作业
#include #include using namespace std; class jz; istream &operator >> (istream &is,jz &c); ostream &operator class jz{ public: jz(){}; friend jz operator + (const jz &a, const
2015-05-17 20:54:01
198
原创 个人作业
#include using namespace std;class Complex{public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} operator double(){return real;} Complex operator + (Complex &c2);
2015-05-17 20:53:10
182
原创 个人作业
#include using namespace std;class Complex{public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} Complex operator + (Complex &c2); Complex operator - (Complex &c2)
2015-05-17 20:52:25
239
原创 个人作业
#include using namespace std;class Complex{public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} Complex operator + (Complex &c2); void display();private: d
2015-05-17 20:52:18
140
原创 个人作业
#include //第十二小题using namespace std;templateclass Compare{ public:Compare(numtype a,numtype b);numtype max();numtype min(); private:numtype x,y;};templateCompare::Compare(num
2015-05-17 20:50:32
137
原创 个人作业
#include using namespace std;class Time;class Date{public:Date(int ,int ,int);friend Time;private:int day;int month;int year;};Date::Date(int d,int m,int y){ int day=d;
2015-05-17 20:50:06
158
原创 个人作业
#includeusing namespace std;class Time;class Date{public:Date(int,int,int);friend void display( const Date &, const Time &);private:int month;int day;int year;};class Time{
2015-05-17 20:48:14
155
原创 个人作业
#includeusing namespace std;class shangping{public:shangping(int m,int q,int p):num(m),quantity(q),price(p){}void S();void N();static float average();static void display();privat
2015-05-17 20:47:01
165
原创 个人作业
#include#includeusing namespace std;class Student{public:Student(int x,int c):xuehao(x),chengji(c){}int xuehao;int chengji;};int Max(int b[5]) {int max;max=b[0];for(i
2015-04-28 21:36:36
159
原创 个人作业
#includeusing namespace std;class student{public:student(int x=0,int c=0):xuehao(x),chengji(c){}void show_student();private:int xuehao;int chengji; };void student::show_student
2015-04-20 23:21:32
436
原创 个人作业
#includeusing namespace std;class Date{public:Date(int=1,int=1,int=2005);Date(int,int);Date(int);Date();void display();private:int month;int day;int year;};Date::Date
2015-04-20 23:20:16
159
原创 个人作业
头文件#include using namespace std;class Array_max{public:void set_value();void max_value();void show_value(); private:int array[10];int max;};源代码#include#include#in
2015-04-19 22:28:08
175
原创 个人作业
头文件#include#includeusing namespace std;class Student{public:void display();void set_in();private:int num;string name;char sex;};源文件#include#include#include#include"
2015-04-19 22:24:03
167
原创 个人作业
#includeusing namespace std;class Cfz{public:void shulu();void tiji();private:int length;int width;int heigth;};void Cfz::shulu(){cin>>length;cin>>width;cin>>heigth;}
2015-04-19 19:42:26
164
原创 个人作业
#includeusing namespace std;class Time{public:void sltime();void sctime();private:int hour;int minute;int sec;};void Time::sltime(){cin>>hour ;cin>>minute ;cin>>sec ;
2015-04-19 19:40:23
200
原创 个人作业
#includeusing namespace std;class Time{public:void sltime(){cin>>hour ;cin>>minute ;cin>>sec ;}void sctime(){cout} private:int hour;int minute;int sec;};int m
2015-04-19 19:36:59
215
原创 个人作业
#include using namespace std;#define n 5template T sort(T a[n]){T t=0; for(int i=0;ifor(int j=i+1;jif(a[j]t=a[j];a[j]=a[i];a[i]=t;}}} } int main(){int a[n];for(i
2015-04-07 17:45:20
205
原创 个人作业
#include #include //35页13题 using namespace std;const int n =5;int sort(int a[n]){int t=0; for(int i=0;ifor(int j=i+1;jif(a[j]t=a[j];a[j]=a[i];a[i]=t;}}} } float sort(fl
2015-04-07 17:44:19
259
原创 个人作业
#include#includeusing namespace std;void sort(string a ,string b ,string c, string d, string e){string ae[5]; string t;ae[0]=a; ae[1]=b; ae[2]=c; ae[3]=d; ae[4]=e;for (int i=0;ifor(int
2015-04-07 17:42:00
149
原创 个人作业
#include#includeusing namespace std;int main(){string a;cin>>a;int k=0;k=a.length();for(k=k-1;k>=0;k--){cout}return 0;}
2015-04-07 17:39:43
182
原创 个人作业
#includeusing namespace std;int f(int &a,int &b){if(a>b)coutelsecout}int main(){int c,d;cin>>c>>d;f(c,d);return 0;}
2015-03-29 11:53:50
177
原创 个人作业
#includeusing namespace std;int main(){string a="rong";string b="lin";a=a+b;coutreturn 0;}
2015-03-29 11:46:20
179
原创 个人作业
#includeusing namespace std;int f(int &a,int &b,int &c){int temp;if(b>c){temp=b;b=c;c=temp;}if(aelse if(aelse cout}int main(){int d=10,e=90,h=33;f(d,e,h);return 0;
2015-03-29 11:44:13
272
原创 个人作业
#includeusing namespace std;int max(int a=2,int b=6,int c=7){if(b>a) a=b;if(c>a) a=c;return a;}int main(){int f;f=max();coutreturn 0;}
2015-03-29 11:33:49
143
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人