原创 中綴表達式求值(c++)

//環境:vs2010 //expseqstack.h #ifndef EXPSEQSTACK_H //定義頭文件 #define EXPSEQSTACK_H const int StackS

原创 順序棧的應用-刮號匹配問題

  //環境:vs2010 //SeqStack.h const int Maxsize=100; template <class T> class SeqStack { public: SeqStack();//空棧的建

原创 循環隊列的實現(c++)

//環境:vs2010 //代碼較少,直接一個源文件 #include <iostream> using namespace std; const int QueueSize=100; template <class DataTyp

原创 圖的構造和實現——鄰接表[有向圖](c++)

//環境:vs2010 //ALGraph.cpp #include <iostream> using namespace std; const int MaxSize=10; //圖的最大頂點數 struc

原创 鏈隊列的實現(c++)

  // 環境:vs2010 // 代碼比較少,所以直接一個源文件 #include <iostream> using namespace std; template <class DataType> struct Node //

原创 圖的構造和實現——鄰接矩陣[無向圖](c++)

//環境:vs2010 //MGraph.h #ifndef MGraph_H //定義頭文件 #define MGraph_H const int MaxSize = 10;