#include <ctime> 包含有什么函数??

2025-05-10 14:28:42
推荐回答(2个)
回答1:

这个头文件其实没函数,查看源文件其中是包含了 TIME.H所以要查阅函数去看TIME.H文件,_CRTIMP char * __cdecl asctime(const struct tm *);
_CRTIMP char * __cdecl ctime(const time_t *);
_CRTIMP clock_t __cdecl clock(void);
_CRTIMP double __cdecl difftime(time_t, time_t);
_CRTIMP struct tm * __cdecl gmtime(const time_t *);
_CRTIMP struct tm * __cdecl localtime(const time_t *);
_CRTIMP time_t __cdecl mktime(struct tm *);
_CRTIMP size_t __cdecl strftime(char *, size_t, const char *,
const struct tm *);
_CRTIMP char * __cdecl _strdate(char *);
_CRTIMP char * __cdecl _strtime(char *);
_CRTIMP time_t __cdecl time(time_t *); 这是其中一些函数,顾名思义就是处理时间格式的数据。

回答2:

include ?不对吧? 是
include
其实,help 里有 的
去看看