自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Andy

学习中

  • 博客(4)
  • 收藏
  • 关注

原创 运算符“+”的重载及一些注意事项

//一般进行运算符“+”的重载的代码如下#include<iostream>using namespace std;class complex{private:    int i,r;public:    complex(int a=0,int b=0):r(a),i(b){};    complex operator+(complex b);    void printf()    ...

2018-03-31 10:33:10 174

原创 运算符>重载的运用

#include<iostream>using namespace std;class Student{private:    double grade;public:    Student(double a=0):grade(a){};    Student operator >(Student b);    int conclusion()    {        if(gr...

2018-03-30 21:08:25 264

原创 简单的类的做法,尽可能用一些类的知识,不足之处请多指教

#include<iostream>#include<cstring>using namespace std;class Student{    char *name;    char *num;    char *sex;    int year;public:    Student(int );    ~Student();    void base();    voi...

2018-03-25 09:51:28 123

原创 简单的关于C++继承的封装

#include<iostream>#include<cstring>using namespace std;class Student{    char name[20];    char num[20];    char sex[4];public:    void base();    void showbase();};void Student::base(){  ...

2018-03-24 21:02:56 141

空空如也

空空如也

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

TA关注的人

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