shape.h
来自「此文件可以能帮你求体积」· C头文件 代码 · 共 24 行
H
24 行
// Shape.h: interface for the Shape class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_SHAPE_H__3D9F2790_E309_44B3_A908_0E56D905ACE6__INCLUDED_)
#define AFX_SHAPE_H__3D9F2790_E309_44B3_A908_0E56D905ACE6__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <iostream.h>
class Shape
{
public:
Shape(){ Draw(); }
virtual ~Shape(){ Erase(); }
void Draw(){ cout << "\nBase::Draw()\n"; }
void Erase(){ cout << "Base::Erase()\n\n"; }
};
#endif // !defined(AFX_SHAPE_H__3D9F2790_E309_44B3_A908_0E56D905ACE6__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?