C++面向对象~应用实例,帮忙找错阿。。。#include<
#includeclassstudent{ :student(long=0,int=0,int=0,int=0,int=0,int=0);voidgetscore();intgetTotal();doubleaverage();voiddisplay();~student(){};};student::student(longr,intm,inte,intc,intce,intl){rollnumber=r;math=m;english=e;cpp=c;economics=ce;l
stu[i]=new student; stu[i]->getscore; 这两行应该是: stu[i]=new student(); stu[i]->getscore(); 这一行也有问题: ~student(){}; 主要是,这样的方式已经定义了函数体,下面就不能再定义了,可以修改为: ~student(); 编译已经通过了现在,只是链接的时候出错。 使用vc编译的么?查看一下相关vc的书,看看怎么构建控制台应用。