- 博客(10)
- 收藏
- 关注
原创 acm 第一套输入输出—私有继承
#include using namespace std;class Student{public: void get_value() { cin>>num>>name>>sex; } void display( ) { cout<<"num: "<<num<<endl; cou
2014-06-24 15:21:44 683
原创 acm 第一套比较大小-类模板
#include #include using namespace std;templateclass Compare{public: Compare(numtype a,numtype b); numtype max(); numtype min();private: numtype x,y;};templateCo
2014-06-24 14:58:13 706
原创 acm 第一套抽象基类
#include#includeusing namespace std;class Shape{public: virtual float printArea()=0;};class Circle:public Shape{public: Circle(float r):rad(r){} virtual float printAre
2014-06-24 14:39:14 693
原创 第二套 (1)
#include #include using namespace std;class Rectangle{ private: double long1,high1,long2,high2; public: Rectangle() {} Rectangle(double l1,double h1,double l2,double h
2014-06-17 15:18:52 744
原创 acm (5)
#include#include using namespace std;class Teacher{public: Teacher(string nam,int a,char s,string tit,string ad,string t); void display();protected: string name; int ag
2014-06-17 14:37:21 909
原创 acm第一套题 (4)
#include using namespace std;class Student{public: void get_value() { cin>>num>>name>>sex; } void display( ) { cout<<"num: "<<num<<endl; cou
2014-06-10 14:54:37 866
原创 acm第一套 (2)
//******************** begin ********************#include using namespace std;class A{private: int a,b;public: A(int aa, int bb) { a=aa; b=bb; }
2014-06-10 14:26:32 650
原创 acm第一套 (1)
#include using namespace std;class Rectangle //矩形类{private: int length; //矩形的长和宽 int width;public: Rectangle(); Rectangle(int l,int w); //构造函数,l、w分别代表长和宽 int getArea
2014-06-10 14:21:10 677
原创 【项目1-工资数据的输入】 文件读入工资
/** 程序的版权和版本声明部分* Copyright (c)2014, 烟台大学计算机学院学生* All rightsreserved.* 文件名称: array.cpp* 作 者: 刘江* 完成日期:2013年6月3日* 版本号: v1.0* 输入描述:无* 问题描述:*/#include #include //支持freopen的
2014-06-03 14:43:43 762
原创 15周【项目1-工资数据的输入】
/** 程序的版权和版本声明部分* Copyright (c)2014, 烟台大学计算机学院学生* All rightsreserved.* 文件名称: array.cpp* 作 者: 刘江* 完成日期:2013年6月3日* 版本号: v1.0* 输入描述:无* 问题描述:*/#include using namespace std;in
2014-06-03 14:35:19 683
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人