所属分类:
SCSI/ASPI
开发工具:C++ Builder
文件大小:3KB
下载次数:10
上传日期:2010-03-02 20:12:24
说明: TurboC 提供了 time() (被定義在 <time.h> 中) 這個函式供我們取得系統時間,
當我們執行了 time(NULL) 時, 該函式便會傳回一個 time_t 型態(被定義在 <time.h> 中)
的數字, 單位是"秒", 所以我們應該先用 time_t 宣告一個變數, 來接收 time() 的傳回值:
(TurboC provides the time () (is defined in the <time.h> In) This function is for us to get the system time, when we carried out time (NULL) , the function will return a time_t type (defined in the <time.h> Middle) figure, the unit is " seconds" , so we should first declare a variable to use time_t to receive time () return a value:)