- 博客(8)
- 收藏
- 关注
原创 OOP课程设计报告
《面向对象程序设计》课程设计报告 设计题目图书信息管理系统学生姓名陈海燕学生班级信管1141班学生学号201411671101指导教师易学明 完成时间: 201
2015-07-05 20:37:30
1181
原创 第八章
#include using namespace std;template T Max(T value[], int size){ T max = value[0]; T temp; for (int i = 0;i < size;i++) if (value[i] > max) { temp = max; max = value[i]; value[i
2015-07-03 17:38:11
300
原创 第七章
#includeusing namespace std;class Matrix{public:Matrix();//加一个这个默认构造函数,设置初值Matrix(int a[2][3]);//设置数组的构造函数Matrix operator+(int b[2][3]);//运算符+重载成员函数Matrix operator-(int b[2][3]);//运算符-重载成员函数v
2015-07-03 17:34:36
293
原创 第六章
#include using namespace std;const double PI=3.1415927;class Base {public: Base(double x):h(x) { } virtual void disp()=0;protected: double h;//高};class Cuboid:public Base{public: Cub
2015-07-03 17:29:56
295
原创 第五章
#include#includeclass Student; //学生类class Teacher; //教师类class Person //人类{private:int id;char name[20];public:Person(int x,char *p){id=x;strcpy(name,p);}void show(Student s){cout << "
2015-07-03 17:05:26
263
原创 第四章
#include#includeusing namespace std;class student{public: student(string m,int n,double d); ~student(); static void avg(); void display();private: int no; string name; double deg; static
2015-07-03 16:35:44
334
原创 第三章
class Date{private: int year; int month; int day;public: Date(int y=0,int m=0,int d=0):year(y),month(m),day(d){} Date(const Date&D):year(D.year),month(D.month),day(D.day){} int Getyear(){retur
2015-07-03 16:25:59
865
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人