术语 | CTime::Comparison Operators |
释义 | CTime Comparison Operators BOOL operator ==( CTime time ) const; BOOL operator !=( CTime time ) const; BOOL operator <( CTime time ) const; BOOL operator >( CTime time ) const; BOOL operator <=( CTime time ) const; BOOL operator >=( CTime time ) const; 说明: 这些操作符比较两个绝对时间,如果测试条件为真则返回非零值;否则返回0。 示例: // CTime比较操作符示例: CTime t1 = CTime::GetCurrentTime(); CTime t2 = t1 + CTimeSpan( 0, 1, 0, 0 ); // 1 hour later ASSERT( t1 != t2 ); ASSERT( t1 < t2 ); ASSERT( t1 <= t2 ); |
随便看 |
|
MFC类库中文详解手册包含4274条MFC类库参考词条,基本涵盖了Microsoft基本类库中的类、全局函数、全局变量和宏的内容,是计算机编程的有利工具。