- 博客(8)
- 收藏
- 关注
原创 OOP课程设计报告
《面向对象程序设计》课程设计报告 设计题目 图书信息管理系统 学生姓名 陈海燕 学生班级 信管1141班 学生学号 201411671101 指导教师 易学明 完成时间: 201
2015-07-05 20:37:30
1298
原创 第八章
#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
337
原创 第七章
#include using 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
334
原创 第六章
#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
329
原创 第五章
#include #include class 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
295
原创 第四章
#include #include using 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
383
原创 第三章
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
911
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人