?? 程序13.7:獨立實踐4.cpp
字號:
/* 程序13.7:獨立實踐4.cpp:*/
#include<iostream> //包含頭文件
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;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -