算时间的一个小程序,能帮忙改下吗
#include <stdio.h>int main(int argc, char* argv[])
{
for(int t=0,c;scanf("%1slease input time(seconds):%d",&c,&t)==2;) //就这句有问题,不知道怎么改
printf("Output time is(h:m:s):%d:%02d:%02d\n",t/3600,t/60%60,t%60);
return 0;
}
#include <stdio.h> int main(int argc, char* argv[]) { for(int t=0,c;scanf("%d%d",&c,&t)==2;) printf("Output time is(h:m:s):%d:%02d:%02d\n",t/3600,t/60%60,t%60); return 0; }