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

📄 goods.h

📁 《C++程序设计习题及解答》配套代码VC版
💻 H
字号:
// Goods.h: interface for the Goods class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_GOODS_H__06B2A9C0_1958_4961_B2A5_2441F20D7711__INCLUDED_)
#define AFX_GOODS_H__06B2A9C0_1958_4961_B2A5_2441F20D7711__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class Goods  
{
public:
	static int GetTotal();
	int Get();
	Goods( int w );
	Goods( Goods& gd );
	virtual ~Goods();

private:
	int weight;
	static int totalWeight;
};

#endif // !defined(AFX_GOODS_H__06B2A9C0_1958_4961_B2A5_2441F20D7711__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -