摘要:
c语言中写入日期和时间。 1、 #include <stdio.h> #include <time.h> int main(void) { FILE *fp; time_t current = time(NULL); struct tm *timer = localtime(¤t); i 阅读全文
posted @ 2021-06-08 12:39
小鲨鱼2018
阅读(1096)
评论(0)
推荐(0)
摘要:
1、 #include <stdio.h> #include <time.h> // time_t数据类型,日历时间头文件 int main(void) { time_t current = time(NULL); // 利用time函数获取日历时间(返回1970之后的秒数,整型) struct t 阅读全文
posted @ 2021-06-08 12:28
小鲨鱼2018
阅读(2219)
评论(0)
推荐(0)