自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 C++课后习题作业

1. #include #include using namespace std; int main() {double a,b,c,s,area; cout<<"please input a,b,c:"; cin>>a>>b>>c; if (a+b<=c) cerr<<"a+b<=c,error!"<<endl; else if(b+c<=a) cerr<<"b+c<=a,e

2015-06-16 12:54:27 363

原创 C++作业

#include #include using namespace std; class Student { public: virtual void get()=0; virtual void display()=0; string name; int num; }; class UnderGraduate :public Student//本科生 { public: void get

2015-05-27 09:03:47 234

原创 C++ 第四章课后习题作业

1.#include using namespace std; class Complex{ public: Complex() { real=0; imag=0; } Complex(double r,double i) { real=r; imag=i; } double getreal() { return real;

2015-05-20 11:10:00 550

原创 C++的作业

//扩展程序:创建一个三角形类 //修改create_object函数,使得程序支持三角形的创建 //和求面积、打印等操作 #include using namespace std; class Shape { public: virtual double getArea() const =0; virtual void print() const =0; virtua

2015-05-19 21:33:35 341

原创 C++课后习题作业

1: #include using namespace std; class Student {public: void get_value() {cin>>num>>name>>sex;} void display( ) {cout<<"num: "<<num<<endl; cout<<"name: "<<name<<endl; cout<<"sex:

2015-05-18 22:22:09 318

原创 C++课后习题作业

1: #include using namespace std; class Student {public: void get_value() {cin>>num>>name>>sex;} void display( ) {cout<<"num: "<<num<<endl; cout<<"name: "<<name<<endl; cout<<"sex:

2015-05-18 21:46:30 365

原创 Time Data

#include class Time{ public: Time(){} Time(int h,int m,int s) { hour=h; minute=m; second=s; } friend istream & operator>>(istream &,Time &); friend ostream & operator<<(ostream &,Time &);

2015-05-12 21:27:43 281

原创 0143928--皮丽莉--c++作业

#include #include using namespace std; #define MAXLEN 100 class Complex{ double re;//实部 double im;//虚部 public: Complex(double x=.0,double y=.0):re(x),im(y){} void display() const; //作为成员函数

2015-04-28 22:01:56 287

原创 C++作业

2015-04-20 22:53:09 269

原创 0143928---皮丽莉---第三章的C++作业

3.#include using namespace std; class Date {public: Date(int=1,int=1,int=2005); void display(); private: int month; int day; int year; }; Date::Date(int m,int d,int y):month(m),da

2015-04-19 14:48:09 379

原创 0143928--皮丽莉---第三章C++作业

#include using namespace std; class Date {public: Date(int,int,int); Date(int,int); Date(int); Date(); void display(); private: int month; int day; int year; }; Date::Dat

2015-04-19 14:42:36 359

空空如也

空空如也

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

TA关注的人

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