自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 复数相乘

//方法一#includeusing namespace std;class Complex{public:double real;double imag;Complex(double r = 0, double i = 0){real = r; imag = i;}};Complex operator*(Complex co1, Complex co2){Complex temp;temp.real = co1.real * co2.real-co1.imagco2.ima

2021-12-19 13:02:13 102

原创 排序

#include#includeusing namespace std;class MyArray {public:MyArray(int length);~MyArray();void Input();void Display(string);protected:int* alist;int length;};MyArray::MyArray(int leng){length = leng;if (leng <= 0){cout << “error l

2021-12-13 00:05:10 829

原创 上机五

#includeusing namespace std;class Base {public:void setx(int i){x = i;}int getx(){return x;}public:int x;};class Derived :public Base {public:void sety(int i){y = i;}int gety(){return y;}void show(){cout << “Base::x=” <&

2021-12-05 18:21:05 580

原创 ClassMoney

#includeusing namespace std;class student{private:static float m_Classmoney;public:int Student(){}~student(){}void InitStudent(char name[]);void ExpendMoney(float money);static void ShowMoney();};float student::m_Classmoney = 1000;void studen

2021-11-22 11:34:58 541

原创 score

#includeusing namespace std;class score{public:score(){num = 2;cout << “默认学生数目为2” << endl;}score(int num1){num = num1;cout << “请输入学生数目(最多100个):” << endl;}~score(){cout << “score destruction called!” << e

2021-11-21 16:46:52 629

空空如也

空空如也

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

TA关注的人

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