C++程序问题——加注释的地方有问题

[复制链接]
查看11 | 回复3 | 2011-11-19 10:46:13 | 显示全部楼层 |阅读模式
#includeusing namespace std;#define N 3class Student{private:char *number;//学号这里用指针指向的字符串int obj;int english;int math;float aaverage;Student *temp1;Student *temp2;Student *temp3;public: Student();void input();void average();void order();void display();~Student(){};...
回复

使用道具 举报

千问 | 2011-11-19 10:46:13 | 显示全部楼层
#includeusing namespace std;#define N 3class Student{private:char number;int obj;int english;int math;float aaverage;Student *temp1;Student...
回复

使用道具 举报

千问 | 2011-11-19 10:46:13 | 显示全部楼层
把b.order();和b.average();调换一下位置就行了换成b.average();b.order();事实上,你这题并没有用到面向对象的思想。...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行