有很多时候为了测试效率问题,我们需要对时间的精确掌控,mfc给我们封装的时间函数就满足不了我们的需求了。 这时候需要使用下面两个函数 BOOL QueryPerformanceFr…
自己一直想做一个和windows资源管理器一样的程序,所以看了一下如何列举系统的所有进程。主要用到几个函数 CreateToolhelp32Snapshot,Process32Fi…
int times(int searchNum, int arr[], int length) // length 是数组元素个数,searchNum是要查找的值 { int nu…
#define MaxSize 1000 typedef char ElemType; typedef struct node { ElemType data; struct no…
最近在阅读SGI STL源代码,其中红黑树的实现比较有技术含量,但标准库里面是捆绑了其中的allocator, iterator(Rb_tree专用的),使用很多模板变量,实现对多…
我们都知道病毒木马都要与外面通信,如何检测呢,今天我们来时间检测进程端口来检测木马 #include <windows.h> #include <Tlhelp32…
#include<cstring> #include<iostream> #define LEN 10 using namespace std; char …
/* * main.c * ---------------------------------------------- * 2013-01-09 chrisniu1984@gma…
#include "stdio.h" struct date { int y; int m; int d; }; void main() { date da; …
//清空log文件夹 void CPMAgentManageDlg::DeleteFolder(CString sPath) { CFileFind ff; BOOL bFound…
C++编写的页面淘汰算法LRU //FIFO #include<iostream> #include<iomanip> using namespace st…
C++编写的页面淘汰算法FIFO //FIFO #include<iomanip> #include<iostream> using namespace s…