- 博客(2)
- 资源 (1)
- 收藏
- 关注
原创 C语言或其开机时间与控制台电子时钟
printf("已经开机:%d分钟/n",GetTickCount()/1000/60);一句代码而已,呵呵。time_t m_time; time(&m_time); tm* tm_local=localtime(&m_time); while(1) { clrscr(); printf("已经开机:%d分钟/n",GetTickCount()/1000/60); time_t m_time; time(&m_time); tm* tm_local=local
2010-07-30 10:51:00 965
原创 不用MFC也可以查内存泄露,简单好用。
<br />先上代码<br />// t1.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#define _CRTDBG_MAP_ALLOC#include <crtdbg.h>int _tmain(int argc, _TCHAR* argv[]){ _CrtSetDbgFlag(_CrtSetDbgFlag(_CRTDBG_REPORT_FLAG) | _CRTDBG_LEAK_CHECK_DF); int* test=new i
2010-07-08 09:41:00 495
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人