- 博客(23)
- 资源 (11)
- 收藏
- 关注
原创 acm 投简历
#include #include using namespace std;class jianli{public: void getvalue() { cin>>name>>age>>sex>>major; } void display() { cout<<"name:"<<name<<en
2014-05-28 17:11:46 1120
原创 14周 项目3 立体类族共有的抽象类
#include using namespace std;class CSolid{public: virtual double area() const=0; virtual double volume() const=0;};class CCube:public CSolid{public: CCube(double s):
2014-05-27 15:26:52 823 1
原创 14周 项目2 形状类族中的纯虚函数
#include using namespace std;class Shape{public: virtual double area()=0;};class Circle:public Shape{public: Circle(double r):R(r) {} virtual double area() {
2014-05-27 14:37:43 796
原创 十四周 项目 1 动物这样叫
#include #include using namespace std;class Animal{public: virtual void cry() { cout<<"不知哪种动物,让我如何学叫?"<<endl; }};class Mouse:public Animal{public: Mous
2014-05-26 19:51:14 988 1
原创 S1 商品信息管理系统
#include #include #include #include #include using namespace std;//void welcome();//欢迎界面void display(int);//输出信息int size=0;class Product{public: void addProduct(); void queryById();
2014-05-22 08:22:54 1490 1
原创 13周 项目2 圆的比较
#include #include using namespace std;class Point{public: Point(double a,double b):x(a),y(b) {} double getx() { return x; } double gety() { return y;
2014-05-20 19:39:03 708
原创 13周 acm 3
#include using namespace std;class Rectangle //矩形类{private: int length; //矩形的长和宽 int width;public: Rectangle(); Rectangle(int l,int w); //构造函数,l、w分别代表长和宽 int getArea(); //求面积
2014-05-20 18:18:34 478
原创 13周 acm 2 复数
#include #include using namespace std;class Complex{public:Complex():real(0),imag(0) {}Complex(double r,double i):real(r),imag(i) {}Complex operator+(Complex &);Complex operator+(double &);f
2014-05-20 18:16:59 624
原创 13周 acm
#include #include #include #include using namespace std;class Point{public: Point(double a=0,double b=0,double c=0,double d=0):x1(a),y1(b),x2(c),y2(d) {} void input(); friend vo
2014-05-20 18:14:58 476
原创 13周 项目1 点,圆的关系
#include #include using namespace std;class Point{public: Point(double a,double b):x(a),y(b) {} double getx() { return x; } double gety() {
2014-05-20 13:03:16 859
原创 s1考试 图书管理系统 结构体版
#include #include #include #include #include using namespace std;struct Library{ long number;//编号 string bookname;//书名 string author;//作者 string press;//出版社 int price;//价格}
2014-05-20 07:22:39 1384 3
原创 12周 项目4
#include using namespace std;class Date{public: Date(int y=0,int m=0,int d=0); void SetDate(int y,int m,int d); void PrintDate();protected: int year; int month; int day;}
2014-05-19 21:04:10 809
原创 12周 项目3 摩托车继承机动车和自行车
#include #include#include using namespace std;enum vehicleStaus {rest, running}; //车辆状态:泊车、行进class vehicle //车辆类{protected: int maxSpeed; //最大车速 int currentSpeed; //当前速度 int weigh
2014-05-14 21:35:16 988
原创 12周 项目2 老师兼干部类
#include #include using namespace std;class Teacher{ public: Teacher(string nam,int ag,char s,string ad,int num,string t) { name=nam; age=ag; sex=s;
2014-05-13 19:55:55 552
原创 长颈鹿类对动物类的继承 protected继承方式下
#include using namespace std;class Animal{public: Animal() {} void eat() { cout << "eat\n"; }protected: void play() { cout << "play\n"; }
2014-05-13 15:12:23 478
原创 12 周 长颈鹿类对动物类的继承 private继承方式下
#include using namespace std;class Animal{public: Animal() {} void eat() { cout << "eat\n"; }protected: void play() { cout << "play\n"; }
2014-05-13 14:57:07 648
原创 12周 长颈鹿类对动物类的继承 public继承方式
#include using namespace std;class Animal //动物类{public: Animal() {} void eat(){ cout << "eat\n"; }protected: void play() { cout << "play\n";
2014-05-13 14:37:50 585
原创 十一周 项目2 职员有薪水了 扩展
#include #include using namespace std;class CPerson{protected: char *m_szName; char *m_szId; int m_nSex;//0:women,1:man int m_nAge;public: CPerson(char *name,char *id,int sex,int age); voi
2014-05-08 07:41:39 719
原创 十一周 项目4 类族的设计 完整版
#include #include using namespace std;class Point{public: Point(double x=0,double y=0); void setPoint(double,double); double getx() { return x; } double gety()
2014-05-07 22:39:16 667
原创 十一周 项目4 类族的设计
#include #include using namespace std;class Point{public: Point(double x=0,double y=0); void setPoint(double,double); double getx() { return x; } double gety()
2014-05-07 21:58:01 618
原创 十一周 项目三 点类
#include#includeusing namespace std;class Point //定义坐标点类{public: Point():x(0),y(0) {}; Point(double x0, double y0):x(x0),y(y0){}; void PrintPoint(); //输出点的信息 double getx() {
2014-05-07 11:20:34 596
原创 十一周 项目2 职员有薪水了
#include using namespace std;class CPerson{protected: string m_szName; string m_szId; int m_nSex;//0:women,1:man int m_nAge;public: CPerson(string name,string id,int
2014-05-06 14:51:11 637
原创 十一周 存储班长信息的学生类
#include using namespace std;class Stu //声明基类{public: Stu(int n, string nam ); //基类构造函数 void display( ); //成员函数,输出基类数据成员protected: //(*)访问权限为保护型的数据成员 int nu
2014-05-06 14:18:46 714
从实践中学习Oracle SQL(非常适合新手学习Oracle数据库的书籍,全是实例)
2016-12-30
基于javaweb实现的新闻发布管理系统
2016-12-29
图书管理系统(C#+SQL 适合毕业设计含毕业文档)
2016-12-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人