⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 import4.cpp

📁 UC Library Extensions UnderC comes with a pocket implementation of the standard C++ libraries, wh
💻 CPP
字号:
#include "export.h"
#ifndef __UNDERC__
#include "\ucw\include\list"
#endif

struct EXPORT SS {
   int a;
   int b;
};

class EXPORT IntStack {
private:
   std::list<int> m_ls;
public:
   IntStack() { }
   ~IntStack() { }

   void push(int i) { m_ls.push_back(i); }

   int pop() 
   {
    int val = m_ls.back();
    m_ls.pop_back();
    return val;
   }

   void push(std::list<int>& ls)
   {
     std::list<int>::iterator ili;
     for(ili = ls.begin(); ili != ls.end(); ++ili) {
        push(*ili);
     }
   }

};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -