术语 | CTimeSpan::CTimeSpan | ||||||||||||||||||||||||||||
释义 | CTimeSpan::CTimeSpan CTimeSpan( ); CTimeSpan( const CTimeSpan& timeSpanSrc ); CTimeSpan( time_t time ); CTimeSpan( LONG lDays, int nHours, int nMins, int nSecs ); 参数:
说明: 所有这些构造函数都创建一个新的CTimeSpan对象,并用指定的相对时间值来对其进行初始化。下面是对每一个构造函数的描述:
示例: // example for CTimeSpan::CTimeSpan CTimeSpan ts1; // Uninitialized time value CTimeSpan ts2a( ts1 ); // Copy constructor CTimeSpan ts2b = ts1; // Copy constructor again CTimeSpan ts3( 100 ); // 100 seconds CTimeSpan ts4( 0, 1, 5, 12 ); // 1 hour, 5 minutes, and 12 seconds |
||||||||||||||||||||||||||||
随便看 |
|
MFC类库中文详解手册包含4274条MFC类库参考词条,基本涵盖了Microsoft基本类库中的类、全局函数、全局变量和宏的内容,是计算机编程的有利工具。