#include <iostream> #define MAX_VALUE 0x7fffffff using namespace std; //在这里我先反思一下,不知…
#include<stdio.h> #include<stdlib.h> /*tannnn*/ void Swap(int &a,int &…
#include <iostream> #include <stdlib.h> #include <stdio.h> #include <…
#include<stdio.h> #define maxsize 100 typedef struct string { int n; char s[maxsize]…
#include <iostream> using namespace std; //实现一个函数求字符串的长度。 int my_length(const char *…
思路1——全排列的递归实现核心思想: 比如对于字符串”abc”, 第一步:求所有可能出现在第一个位置的字符即:a,b,c。 使用方法:把第一个字符和后面的b、c字符进行交换。 第二…
有很多时候为了测试效率问题,我们需要对时间的精确掌控,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…