下载频道> 资源分类> 编程语言> C源码> 实例123 固定格式输出当前时间

标题:实例123 固定格式输出当前时间
分享到:

所属分类: C源码 资源类型:程序源码 文件大小: 1.79 KB 上传时间: 2017-07-15 21:57:44 下载次数: 8 资源积分:1分 提 供 者: admin 实例123 固定格式输出当前时间
内容:
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
main()
{
time_t Time; /*定义Time为time_t类型*/
struct tm *t; /*定义指针t为tm结构类型*/
Time = time(NULL); /*将time函数返回值存到Time中*/
t = localtime(&Time); /*调用localtime函数*/
printf("Local time is:%s", asctime(t)); /*调用asctime函数,以固定格式输出当前时间*/
getch();
return 0;
}
 

文件列表(点击上边下载按钮,如果是垃圾文件请在下面评价差评或者投诉):

实例123 固定格式输出当前时间
实例123 固定格式输出当前时间\www.gusucode.com
实例123 固定格式输出当前时间\文件说明.txt
实例123 固定格式输出当前时间\www.gusucode.com.txt
实例123 固定格式输出当前时间\www.gusucode.com\123.c
实例123 固定格式输出当前时间\【谷速代码】-免费源码.url

关键词: 实例 格式 时间

相关推荐

Top_arrow
回到顶部
联系方式| 版权声明| 招聘信息| 广告服务| 银行汇款| 法律顾问| 兼职技术| 付款方式| 关于我们|
网站客服网站客服 程序员兼职招聘 程序员兼职招聘
沪ICP备19040327号-3
公安备案号:沪公网安备 31011802003874号
库纳格流体控制系统(上海)有限公司 版权所有
Copyright © 1999-2014, GUSUCODE.COM, All Rights Reserved