【文件属性】:
文件名称:显示系统时间(C++)
文件大小:318B
文件格式:TXT
更新时间:2014-05-09 08:44:03
显示系统时间
#include
#include
using namespace std;
int main()
{
int x,h,m,s;
x=time(NULL);
h=(x/3600%24+8)%24; //中国时区加8,由于+8可能导致大于24所以后面又加了%24
m=x%3600/60;
s=x%3600%60;
cout<<"The current time is:"<
立即下载