📄 cpp07.cpp
字号:
// Coded by plusir -- Jan.08.2003.
// Standard C++ Bible -- (P430-13-29)
#include <iostream>
using namespace std ;
class Shape
{
public:
~Shape( void )
{ cout << "Executing Shape dtor" << endl ; }
} ;
class Circle : public Shape
{
public:
~Circle( void )
{ cout << "Executing Circle dtor" << endl ; }
} ;
int main()
{
Shape *pShape = new Circle ;
delete pShape ;
return 0 ;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -