冲刺第二天

今天11.16日,

我尝试了一下编写代码,

并对编写的代码试运行了一下,

如下是我编写的核心代码:

 Student()
 {
  this->name="wu";
  this->num=0;
  this->yuwen=0;
  this->shuxue=0;
  this->yinyu=0;
  this->average=0;
  this->all=0;
 }
 Student(string name,double num,double yuwen,double shuxue,double yinyu)
 {
  this->name=name;
  this->num=num;
  this->yuwen=yuwen;
  this->shuxue=shuxue;
  this->yinyu=yinyu;
 };
 Student(Student &p)
 {
  name=p.name;
  num=p.num;
  yuwen=p.yuwen;
  shuxue=p.shuxue;
  yinyu=p.yinyu;
  average=p.average;
  all=p.all;
 }

 

posted @ 2018-11-16 22:00  刘冇  阅读(104)  评论(0编辑  收藏  举报