会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
虚生
程序人生,不虚此生
博客园
首页
新随笔
联系
管理
订阅
2023年3月17日
生成文件名为系统时间的C源码实例
摘要: 一 最近遇到了一个需要根据时间记录文件名的。先写一个实例来实战: #include<stdlib.h> #include<time.h> #include<stdio.h> int main() { struct tm *newtime; char outfile[128]; time_t t1;
阅读全文
posted @ 2023-03-17 13:59 虚生
阅读(75)
评论(0)
推荐(0)
公告