说是有错误,但是我真的不知道错什么啊?
/* 程序13.7:独立实践4.cpp:*/
#include //包含头文件
using namespace std; //使用名字空间std
class Application
{
protected:
char appcode[4];
int storagespace;
public:
void getapp();
void showapp();
};
class Spellchecker : public Application
{
protected:
char lang[5];
public:
void getspell();
void showspell();
};
class calculator : public Application
{
protected:
int noofoperations;
public:
void getcal();
void showcal();
};
class spreadsheet : public Spellchecker,calculator
{
protected:
int noofoperations;
public:
void getspr();
void showspr();
};
int main()
{
spreadsheet sprObj;
sprObj.getspr();
sprObj.showspr();
return 0;
}
--------------------next---------------------
阅读(1325) | 评论(0) | 转发(0) |