09 2015 档案

摘要://方案— 优点:仅使用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... 阅读全文
posted @ 2015-09-09 17:03 构建巨人肩膀 阅读(242) 评论(0) 推荐(0)
摘要:1、线程需要用到2、利用句柄创建并执行线程:HANDLE hThread = CreateThread(NULL, 0, Fun, &tp, 0, NULL); CloseHandle(hThread);注意:线程的函数必须是以DWORD WINAPI functionName(LPV... 阅读全文
posted @ 2015-09-03 18:27 构建巨人肩膀 阅读(218) 评论(0) 推荐(0)
摘要:1、头文件需要,但是之前需要包含2、预处理#pragma comment3、完整代码如下: #include #include #include #pragma comment(lib,"winmm.lib")using namespace std;int main(){ mciSendSt... 阅读全文
posted @ 2015-09-03 18:01 构建巨人肩膀 阅读(251) 评论(2) 推荐(0)