- 博客(2)
- 收藏
- 关注
转载 Boolan 第二周笔记
#ifndef _RECTANGLE_#define _RECTANGLE_ class Shape{ int no_;}; class Point{ int x_; int y_; public: Point(int x, int y) : x_(x), y_(y) {}}; class Rectangle: public Shape{ int widt
2017-07-27 09:44:50 213
原创 boolan面向对象编程 第一周笔记
头文件与类的声明 头文件 为防止重复声明,头文件的防卫式声明格式如下: #ifndef _COMPLEX_ #define _COMPLEX_ ...//一些声明语句 #endif 头文件的基本布局格式如下: #ifndef _COMPLEX_ #define _COMPLEX_ #include clas
2017-07-18 11:03:53 214
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人