📄 safearray.h
字号:
#include <stdexcept>
#ifndef SAFEARRAY_H
#define SAFEARRAY_H
using namespace std;
template <class T>
class safearray {
private:
T *storage;
int capacity;
public:
safearray() : storage(NULL), capacity(0) {} // default constructor
safearray(int); // single param constructor
~safearray(void); // destructor
T& operator[] (int) throw(out_of_range);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -