会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
关注微软技术,实现梦想
努力才会成就梦想,挑战才有机会成功
首页
新随笔
联系
订阅
管理
2009年12月21日
如何在C++获得系统时间
摘要: //方案— 优点:仅使用C标准库;缺点:只能精确到秒级 #include <time.h> #include <stdio.h> int main( void ) { time_t t = time(0); char tmp[64]; strftime( tmp, sizeof(tmp), "%Y/%m/%d %X %A 本年第%j天 %z",localtime...
阅读全文
posted @ 2009-12-21 09:54 Kevin Johnson
阅读(1160)
评论(0)
推荐(0)
编辑