原创 靜態鏈表的一些操作
SLinkList.h頭文件 #ifndef SLINKLIST_H_H #define MAX_SIZE 100 #define OK 0 #define ERROR -1 typedef int type; typedef st
原创 雙循環鏈表的一些操作
DLinkList.h頭文件 #ifndef DLINKLIST_H_H #define OK 0 #define ERROR -1 typedef int type; typedef struct DLNode { type elem
原创 單鏈表的一些操作
LinkList.h頭文件 #ifndef LINKLIST_H_H #define OK 0 #define ERROR -1 typedef int type; typedef struct LNode { type elem;
原创 簡單迷宮實驗(鏈棧)
Stack.h #ifndef STACK_H_H #define OK 0 #define ERROR -1 typedef struct Point { int x; int y; }Point; typedef struct
原创 數組表示法建立圖
#include<stdio.h>#include<stdlib.h>#include<limits.h>#include<assert.h>#define OK 1#define ERROR 0 #define INFINITY -1
原创 鄰接表-建立無向圖、無向網、有向圖、有向網
#include<stdio.h>#include<stdlib.h>#define MAX_VERTEX_NUM 20#define OK 1#define ERROR 0 typedef int InfoType; /*
原创 鏈棧的一些操作
LinkStack.h頭文件 #ifndef LINKSTACK_H_H #define OK 0 #define ERROR -1 typedef int type; typedef struct LNo
原创 const的一些總結
1 int* p; 2 const int* p; 3 int const* p; 4 int* p const; 5 const int* p const; 要判斷const修飾指針的特性,我們可以看const這個關鍵字在*號的左邊還是
原创 二叉樹 一些操作
BiTree.h #ifndef BITREE_H_H #define OK 1 #define ERROR 0 typedef char ElemType; typedef struct BiLNode { ElemType da
原创 順序隊列一些操作
SqQueue.h #ifndef SQQUEUE_H_H #define OK 0 #define ERROR -1 #define MAX_SIZE 100 typedef int type; typedef struct SNo
原创 用MFC編寫訪問HTTPS程序之忽略無效證書驗證
最近需要寫一個與HTTPS通訊的APP,但是由於本人是第一次編寫這樣的網絡程序,所以忽略無效證書驗證這個問題一直困擾了1-2天,由於在網上的資料基本上都是說同樣的問題,但是忽略了一點沒有說明的,就是要Query服務器的狀態,經過本人不斷的
原创 十字鏈表 一些操作
CrossList.h #ifndef CROSSLIST_H_H #define OK 1 #define ERROR 0 typedef int ElemType; typedef struct OLNode { ElemTyp
原创 堆分配串一些操作
HString.h #ifndef HSTRING_H_H #define OK 0 #define ERROR -1 typedef struct { char *ch; int length; }HString; int hs
原创 KMP算法代碼
KMP.H #ifndef KMP_H_H #define OK 0 #define ERROR -1 #define MAX_LENGTH 255 typedef unsigned char SString[MAX_LENGTH +
原创 順序存儲 矩陣 一些操作
Matrix.h #ifndef MATRIX_H_H #define OK 0 #define ERROR -1 #define MAX_DIM_SIZE 8 typedef int ElemType; typedef struct