⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 程序13.7:独立实践4.cpp

📁 学习C++的一些范例
💻 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 + -