📄 fig01_13.cpp
字号:
IntCell::~IntCell( )
{
// Does nothing, since IntCell contains only an int data
// member. If IntCell contained any class objects, their
// destructors would be called.
}
IntCell::IntCell( const IntCell & rhs ) : storedValue( rhs.storedValue )
{
}
const IntCell & IntCell::operator=( const IntCell & rhs )
{
if( this != &rhs ) // Standard alias test
storedValue = rhs.storedValue;
return *this;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -