![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
作业
文章平均质量分 78
yihuanha
这个作者很懒,什么都没留下…
展开
-
作业
第七题#include using namespace std;int main(){ int max(int a,int b,int c=0); int a,b,c; cin>>a>>b>>c; cout cout return 0;}int max(int a,int b,int c){if(a if(a return a;}原创 2015-03-31 13:18:05 · 206 阅读 · 0 评论 -
类的归纳
原创 2015-04-20 17:26:16 · 265 阅读 · 0 评论 -
C++第四章
1.#include using namespace std; class Complex{ public: Complex() { real=0; imag=0; } Complex(double r,double i) { real=r;原创 2015-05-13 10:58:40 · 193 阅读 · 0 评论 -
数据结构相关题目
#include #include #include class Student { friend class List;protected: char name[20]; int number; static Student *ptr; Student *next;pub原创 2015-06-02 18:29:31 · 287 阅读 · 0 评论 -
修改create_object函数
#include using namespace std;class Shape { public: virtualdouble getArea() const =0; virtualvoid print() const =0;原创 2015-05-19 20:51:32 · 238 阅读 · 0 评论 -
第5章
1.#include using namespace std; class Student{ public: void get_value() {cin>>num>>name>>sex;} void display() { cout cout cout } private:原创 2015-05-24 13:26:38 · 259 阅读 · 0 评论 -
第6章
1.#include class Point {public: Point(float x=0,float y=0); void setPoint(float,float); float getX() const {return x;} float getY() const {return y原创 2015-05-24 13:43:41 · 251 阅读 · 0 评论 -
第七章
1.#include #include using namespace std; void area(float a,float b,float c) { double s,area; if(a+b cerr<<"a+b<=c,error!"<<endl; else if(b+c cerr<<"b+c<=a原创 2015-06-10 10:53:59 · 191 阅读 · 0 评论