?? 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 + -