显示当前系统时间(Linux C++)

2014-11-24 08:45:03 ? 作者: ? 浏览: 1

#include


#include


using namespace std;


int main()


{


int x,h,m,s;


x=time(NULL);


h=x/3600%24+8; //中国时区加8


m=x%3600/60;


s=x%3600%60;


cout<<"The current time is:"<

return 0;


}


-->

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: