标题:[求助] 这个怎么不行呢?
只看楼主
cutboy
Rank: 1
等 级:新手上路
帖 子:120
专家分:0
注 册:2007-9-16
 问题点数:0 回复次数:2 
[求助] 这个怎么不行呢?
我用的是TC2.01,这段程序
#i nclude "time.h"
#i nclude "stdio.h"
int main(void)
{
struct tm *ptr;
time_t lt;
lt =time(NULL);
ptr=gmtime(<);怎么还有这个东西.不认识,是什么意思?
printf(asctime(ptr));
printf(ctime(<));
return 0;
}
就是不能通过.不知道是怎么搞的?
2007-09-30 21:59
B2Mouse
Rank: 1
等 级:新手上路
帖 子:31
专家分:0
注 册:2007-9-4
得分:0 

#include "time.h"
#include "stdio.h"
int main(void)
{
struct tm *ptr;
time_t lt;
lt =time(NULL);
ptr=gmtime(<);
printf(asctime(ptr)); /*tranfer to Greenwich time*/
printf(ctime(<)); /*english format output*/
return 0;

}

说实在,这个解释我也只是百出来的,关键是在VS2005上运行的时候也出错了,不知道是什么原因。难道是年代久远?
期待牛人解答出错原因,很想知道ing~~~


2007-09-30 23:33
cutboy
Rank: 1
等 级:新手上路
帖 子:120
专家分:0
注 册:2007-9-16
得分:0 
在线等待答案啊!!

2007-10-02 08:37



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-174399-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.259027 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved