C 练习实例91
C 语言教程
· 2019-02-22 16:43:19
题目:时间函数举例1
程序分析:无。
程序源代码:
// Created by www.codercto.com on 15/11/9.
// Copyright © 2015年 码农教程. All rights reserved.
//
#include <stdio.h>
#include <time.h>
int main ()
{
time_t rawtime;
struct tm * timeinfo;
time ( &rawtime );
timeinfo = localtime ( &rawtime );
printf ( "当前本地时间为: %s", asctime (timeinfo) );
return 0;
}
以上实例运行输出结果为:
当前本地时间为: Tue Nov 10 16:28:49 2015
点击查看所有 C 语言教程 文章: https://codercto.com/courses/l/17.html
Computers and Intractability
M R Garey、D S Johnson / W. H. Freeman / 1979-4-26 / GBP 53.99
This book's introduction features a humorous story of a man with a line of people behind him, who explains to his boss, "I can't find an efficient algorithm, but neither can all these famous people." ......一起来看看 《Computers and Intractability》 这本书的介绍吧!