
c++
文章平均质量分 83
低调小星
文经的12级专科生 齐鲁理工15级专升本 现北漂程序狗
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
c++长方体与三角形类
#includeusing namespace std;class encapsulation{public: void get_doul(); void get_volume(); void get_area(); void volume_play(); void area_play(); private: double height;原创 2013-03-28 17:09:11 · 1321 阅读 · 0 评论 -
C++第6周项目5 - 多文件组织三角形类
我在贺老师给出的代码的基础上加入了对于三角形是否成立的判断函数 和 对对象名输出的自定义宏geometry.h#ifndef GEOMETRY_H_INCLUDED#define GEOMETRY_H_INCLUDED#define chuangjian(uiName)CPoint uiName(#uiName);//构造自定义宏class CPoint {private:原创 2013-04-08 22:24:38 · 1042 阅读 · 0 评论 -
C++第8周项目1扩展 - 运算符重载进行虚数运算
#includeusing namespace std;class Complex{public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} friend Complex operator+(Complex &c1,Complex &c2); friend Complex operator原创 2013-04-20 16:32:45 · 1357 阅读 · 0 评论