霍夫曼编码(Huffman Coding)是一种编码方式,是一种用于无损数据压缩的熵编码(权编码)算法。1952年,David A. Huffman在麻省理工攻读博士时所发明的,并…
#include <string> using namespace std; string Encode(char* Data,long DataByte) { //编…
#ifndef _DBUFF_VEW_H #define _DBUFF_VEW_H #include <atlbase.h> #include <atlstr.h…
/* 魔方阵,古代又称“纵横图”,是指组成元素为自然数1、2…n的平方的n×n的方阵, 其中每个元素值都不相等,且每行、每列以及主、副对角线上各n个元素之和都相等。 输…
#include <iostream> using namespace std; typedef enum Color { RED, BLACK, }Color; te…
#include<stdio.h> #define MAX 100 int insert(int a[],int n,int i,int x) { int j; if(…
自己一直想做一个和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 …