自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 第七章

1.#include #include using namespace std; void area(float a,float b,float c) { double s,area; if(a+b<=c) cerr<<"a+b<=c,error!"<<endl; else if(b+c<=a) cerr<<"b+c<=a,erro

2015-06-09 19:12:14 145

原创 用一个异质链表(多态性)保存学生数据

#include #include using namespace std; class Student { public: virtual void get()=0; virtual void display()=0; string name; string num; }; class UnderGrad :public

2015-06-02 18:19:18 323

原创 三角形

04.#include 05.using namespace std; 06.class Shape { 07.public: 08. virtual double getArea() const =0; 09. virtual void print() const =0; 10. virtu

2015-05-26 19:54:59 215

原创 第六章

1. #include class Point {public: Point(float x=0,float y=0); void setPoint(float,float); float getX() const {return x;} float getY() const {return y;} fr

2015-05-25 21:22:51 193

原创 第五讲

#include using namespace std; class Student{ public: void get_value() {cin>>num>>name>>sex;} void display() { cout<<"num:"<<num<<endl; cout<<"name:"<<name<<endl;

2015-05-18 21:07:50 248

原创 Time Date DateTime的继承与派生及运算符重载

#include class Time{ public: Time(){} Time(int h,int m,int s) { hour=h; minute=m; second=s; } friend istream & operator>>(istream &,Time &);

2015-05-18 17:26:37 532

原创 第四章

1.#include using namespace std; class Complex{ public: Complex() { real=0; imag=0; } Complex(double r,double i) { real=r; imag=i;

2015-05-12 20:25:45 229

原创 第三章

3.#include using namespace std;class Date{public: Date(int=1,int=1,int=2005); void display();private: int month; int day; int year;};Date::Date(int m,int d,int y):month(m),day(d),year(y){}

2015-04-20 17:49:15 191

原创 0143895吴彬第一次c++作业

7. #include using namespace std;int main(){ int max(int a,int b,int c=0); int a,b,c; cin>>a>>b>>c; cout cout return 0;}int max(int a,int b,int c){  if(a  if(a  return a;

2015-04-07 18:07:15 1039

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除