Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
<time.h>呀, 真是搞不懂你In Reply To:调用标准库<time.h>函数,为什么还是WA?不解! Posted by:nanhuacrab at 2007-10-07 13:04:06 在gcc下,终于找到了_gmtime64, 处理的数据为int64, 但是仍然错误,为什么呢? 搞不懂搞不懂。 #include<stdio.h> #include<time.h> __int64 t,d,k=946742400; char s[55]; int main(){ for(;scanf("%lld",&d)&&0<=d;){ t=k+3600*24*d; strftime(s,55,"%Y-%m-%d %A",_gmtime64(&t)); puts(s); } return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator