自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 第四张第二十二题

#include #include using namespace std; class dot{ public:  dot(int a,int o)  {abscissa=a;      ordinate=o;  }  void show(); private:  int abscissa;     int ordinate;  friend void dist(dot

2015-06-22 10:45:28 305

原创 第四章第二十一题

#include #include using namespace std; class student{ public:  student(int id1,string name1,double score1);  void show();  static void show_count_sum_ave(); private:  int id;  string nam

2015-06-21 23:31:09 320

原创 第四章第二十题

 #include   using namespace std;   class book{   public:    book(int q,int p)    {qu=q;    price=p;    }    friend void opera(book *p);  private:   int qu;   int price;   };  void oper

2015-06-19 20:10:17 333

原创 第四章第十九题

 #include  using namespace std;  class book{  public:   book(int q,int p)   {qu=q;   price=p;   }   void opera()   {cout  } private:  int qu;  int price;  }; int main() {book b1(1,1

2015-06-19 19:52:14 404

原创 第四章第18题(修正)

 #include  using namespace std;  class Student{  public:   Student(int i,int s)   {id=i;   score=s;   } private:   int id;   int score;  friend void max(Student *p);  };  void max(Stud

2015-06-19 19:15:24 284

原创 第四章第18题

 #include using namespace std; class Student{ public:  Student(int i,int s)  {id=i;  score=s;  } private:  int id;  int score; friend void max(Student *p); }; void max(Student *p) {in

2015-05-16 13:30:43 380

原创 第四章课后练习题第17题

                      Stu[0]  (01,99)   p                      Stu[1]  (02,98)   p++                      Stu[2]  (03,97)    Student                      Stu[3]  (04,96)   p=p+2               

2015-05-03 13:38:59 1450 1

原创 第四章实验第四题

score (数据成员)                        分数                                                              total_score(静态数据成员)         总分                                                              count(

2015-05-01 18:40:31 821 1

原创 学生 老师 类

 #include  #include  using namespace std;  class  Student  {   friend  class teacher;                 string  name;      int id;      int english;      int math;  public:      S

2015-04-29 21:53:41 680 1

原创 魔方

 #include using namespace std; class magic{ public:  void getdata()  {cout   cin>>first;  cout   cin>>step;  }  void setfirstmagic();  void generatemagic(); private:  int m[4][4];  in

2015-04-25 12:10:45 444 1

原创 第四章实验第三题

 #include #include #include using namespace std; class Location{ public:  Location(double a,double b)  {   x=a;   y=b;  }  double Getx()  {   return x;  }  double Gety()  {   retur

2015-04-22 17:08:41 375 1

原创 3.24

 #include using namespace std; class Date{ public:  void printDate();  void GetYear();  void GetMonth();  void GetDay();  void SetDate(int Y,int m,int d); private:  int year;  int month;

2015-04-15 22:50:54 356 1

原创 3.23

 #include using namespace std; class cylinder{  double r;  double h; public:     double v;  cylinder(double r,double h);  void vol(); }; cylinder::cylinder(double r,double h) {  v=3.14*

2015-04-08 18:30:05 331 1

原创 3.22

 #include using namespace std; class Circle{ public:  void input();  void show(); private:  double r;  double a; }; void Circle::input() {cout cin>>r;} void Circle::show() {cout int

2015-04-01 19:54:46 339 1

原创 2.30

 #include #include using namespace std; int sroot(int i) {return sqrt(i); } long sroot(long l); {return sqrt(l); } double sroot(double d) {return sqrt(d); } int main() {  int i=13;  

2015-04-01 19:05:12 401 1

原创 2.29

#include using namespace std; int main() {  int *p;  p=new int[20];  int i;  int Fib[20]={1,1};  for(i=2;i   Fib[i]=Fib[i-1]+Fib[i-2];  for(i=0;i   cout delete p; return 0; }

2015-04-01 18:45:14 469 1

空空如也

空空如也

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

TA关注的人

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