自定义博客皮肤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)
  • 收藏
  • 关注

原创 C++ work4

#include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ class Dog { public: //构造函数 Dog(){ ++count; } //拷贝构造函数 Dog( const Dog & g ){ ++coun.

2022-01-03 22:33:49 228

原创 C++ work2

#include <iostream> using namespace std; //定义3维矢量类 class Vector3{ public: //定义构造函数,并设置默认值0 Vector3(double x=0, double y=0, double z=0){ this->x = x; this->y = y; this->z = z; } //重载 "+" 操作符 const 不是必须的,最好加上。 Vec.

2022-01-03 22:32:53 159

原创 C++ work3

#include <iostream> using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ //定义基类 class Vehicle { public: //定义构造函数 Vehicle( double maxSpeed, double weight ){ this->m.

2022-01-03 22:32:12 429

原创 C++实验一、、

#include <iostream> using namespace std; #include <stdlib.h> //使用srand()函数引入类库 #include <time.h> class Bakery { public: const double fixedCost; //注意常量的初始化 Bakery(); Bakery(double breadPrice, int breadCount=100); //默认参数放在最.

2022-01-03 22:27:24 44

原创 C++实验一

#include <iostream> using namespace std; #include <stdlib.h> //使用srand()函数引入类库 #include <time.h> class Bakery { public: const double fixedCost; //注意常量的初始化 Bakery(); Bakery(doubl...

2022-01-03 22:24:32 309

空空如也

空空如也

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

TA关注的人

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