获得系统时间

 #include<iostream>
#include<ctime>
using namespace std;
int main()
{
 time_t now_time;
 now_time = time(NULL);
 cout<<now_time;
 getchar();
 return 0;
}
posted @ 2011-10-30 01:16  byfei  阅读(106)  评论(0编辑  收藏  举报