原创 KMP算法的實現

#include<iostream> #include<cstring> using namespace std; typedef struct { char ch[50]; int length; }SString;

原创 用棧實現兩位數表達式的求值

#include<iostream> using namespace std; //const char oper[7] = {'+','-','*','/','(',')','#'}; #define OK 1 #define ER

原创 哈夫曼樹的編碼實現

#include <iostream> #include <fstream> #include <cstring> #include <cstdlib> using namespace std; typedef struct{ c