基本信息
文件名称:C语言程序百例解析与优化.pdf
文件大小:264 KB
总页数:17 页
更新时间:2025-08-02
总字数:约1.76万字
文档摘要

【程序91】

题目:时间函数举例1

1.程序分析:

2.程序源代码:

#includestdio.h

#includetime.h

voidmain()

{time_tlt;/*definealonginttimevarible*/

lt=time(NULL);/*systemtimeanddate*/

printf(ctime());/*englishformatoutput*/

printf(as