item.cpp
来自「物件管理系统源代码」· C++ 代码 · 共 15 行
CPP
15 行
#include "Item.h"
cItem::cItem( void ) : type( 0 ) { }
cItem::cItem( unsigned long t ) : type( t ) { }
unsigned long cItem::getID( void ) const { return( type ); }
cItem::cItem( const cItem © ) : type( copy.type ) { }
bool cItem::operator ==( const cItem &i ) const { return( type == i.type ); }
bool cItem::operator <( const cItem &i ) const { return( type < i.type ); }
cItem &cItem::operator =( const cItem © ) {
type = copy.type;
return( *this );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?