摘要: C++中获得当前系统时间 // 方案— 优点:仅使用C标准库;缺点:只能精确到秒级 #include #include int main( void ) { time_t t = time( 0 ); char tmp[64]; strftime( tmp, sizeof(tmp), "%Y/%m/%d %X %A 本年第%j天 %z",localtim... 阅读全文
posted @ 2009-02-23 22:11 jcss 阅读(631) 评论(0) 推荐(0) 编辑
摘要: 下面的代码我调试了将近一个星期,你能够看出什么地方出了问题吗? 线程函数: DWORD WINAPI ThreadProc( while(!bTerminate) { // 从一个链表中读取信息并且插入到CListCtrl中 // CListCtrl的句柄是通过线程参数传递进来的 for(;;) { ... 阅读全文
posted @ 2009-02-23 22:09 jcss 阅读(867) 评论(1) 推荐(0) 编辑