自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 第七章

1.#include #include using namespace std;int main(){double a,b,c,s,area;coutcoutcin>>a;coutcin>>b;coutcin>>c;if(a+b>c && b+c>a && a+c>b)s = (a+b+c)/2.0;else{cerr

2015-06-16 17:35:23 220

原创 第六章

4.#include      using namespace std;  class Shape     {       public:         virtual double area() const =0; };   class Circle:public Shape     {     public:         Circle(

2015-06-09 17:20:50 186

原创 课堂练习 多态性

#include#includeusing namespace std;class Student{public:        virtualvoid get()=0;        virtualvoid display()=0;        stringname;        stringnum;};class UnderGra

2015-06-02 17:42:22 186

原创 第五章习题

1、#include using namespace std;class Student{public:  void get_value()   {cin>>num>>name>>sex;}  void display( )    {cout     cout     cout private :   int num;   char na

2015-05-26 18:37:05 328

原创 C++练习继承类

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

2015-05-12 17:42:43 279

原创 重载课堂作业

#include <iostream>using namespace std;#define OK 1#define ERROR 0class String{ private: char *s; public: friend string operator + ( String &s1, String &s2);

2015-05-06 17:28:08 271

原创 第四章习题

1.#includeusing namespace std;class complex{ public:  double real;  double imag;  void get();  void display();  complex()  {   real=0;imag=0;  }};void complex ::get()

2015-04-26 19:04:47 202

原创 类的知识结构网络

2015-04-18 10:28:32 200

原创 第二章

2.#includeusing namespace std;class Time{ private:  int hour;  int minute;  int sec; public:  int time();};int Time::time(){      Time t1;  cin>>t1.hour;     cin>>t1.mi

2015-04-12 12:26:53 381

原创 第一章节

第一章7.#includeusing namespace std;int main(){ int max(int x=4,int y=9); int a,b,c; c=max(); cout return 0;} int max(int x,int y){ int z; if (x>y)z=x; else z=y; retur

2015-03-29 22:10:33 253

空空如也

空空如也

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

TA关注的人

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