- 博客(7)
- 收藏
- 关注
原创 第七单元
1.#include #include using namespace std;void area(float a,float b,float c){ double s,area; if(a+bcerr else if(b+ccerr else if(a+ccerr else { s=(a+b+c)/2; area=sqrt(s*(s
2015-06-13 13:36:11 244
原创 用一个异地链表保存学生数据
#include #include using namespace std; class Student { public: virtual void get()=0; virtual void display()=0; string name; string num; }; class UnderG
2015-06-13 13:31:21 249
原创 第六单元
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-06-13 13:27:10 221
原创 第五章
#include using namespace std; class Student{ public: void get_value() {cin>>num>>name>>sex;} void display() { cout cout cout } private: int num; char name[10];
2015-05-21 12:01:21 200
原创 第四章
1.#include using namespace std; class Complex{ public: Complex() { real=0; imag=0; } Complex(double r,double i) { real=r; imag=i; . } doub
2015-05-21 11:58:19 170
原创 C++
4.#include using namespace std;class Student{public: Student() {} Student(int g, int n):grade(g),number(n){} void get() { cin>>grade>>number; } int GetGrade()
2015-04-20 22:24:46 239
原创 C++作业
7#include using namespace std;int max (int a,int b=0;c=1){ if(a<b) a=b;if(a<c) a=c;return a;}int max(int a,int b){if(a<b) a=b;elsereturn a;}int main(){ int a,b,c,d; cin>>a>>b>>c; d=
2015-04-13 12:35:56 176
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人