自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 第七章

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

2015-06-10 10:53:59 191

原创 数据结构相关题目

#include #include #include  class Student {         friend class List;protected:         char name[20];         int number;         static Student *ptr;         Student *next;pub

2015-06-02 18:29:31 287

原创 第6章

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

2015-05-24 13:43:41 251

原创 第5章

1.#include   using namespace std;  class Student{  public:     void get_value()     {cin>>num>>name>>sex;}     void display()     {      cout    cout    cout   }  private:  

2015-05-24 13:26:38 259

原创 修改create_object函数

#include using namespace std;class Shape {                       public:         virtualdouble getArea() const =0;         virtualvoid print() const =0;                                    

2015-05-19 20:51:32 238

原创 C++第四章

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

2015-05-13 10:58:40 193

原创 TimeDate

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

2015-05-12 20:10:33 253

原创 字符串的运算符重载

#include #include #includeclass String{public:String(){p=NULL;}String(const String &);String(char *str);~String();String & operator=(const String &);String operator+(const String

2015-04-27 23:07:08 454

原创 类的归纳

2015-04-20 17:26:16 265

原创 作业

第七题#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-03-31 13:18:05 206

空空如也

空空如也

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

TA关注的人

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