# include & ltiostream & gt
# include & ltcstlib & gt
使用命名空間std
int main()
{
int t,h,m,s;
t =時間(0);
t = t % 86400
s = t % 60
t =(t-s)/60;
m = t % 60
t =(t-m)/60;
h = t;
cout & lt& lt“現在是”
返回0;
}
可以顯示