c++ 棧和隊列的基本實現

棧是一種後進先出的線型結構,C++實現棧的代碼如下: [cpp]  view plain  copy #include <iostream>   using namespace std;   #define MAXLEN 50   typedef struct   {       char key[10];       char name[20];       int age;   }Data; 
相關文章
相關標籤/搜索