📄 mytroubles.h
字号:
// MyTroubles.h Exception class definition
#ifndef MYTROUBLES_H
#define MYTROUBLES_H
// Base exception class
class Trouble {
public:
Trouble(const char* pStr = "There's a problem");
virtual ~Trouble();
virtual const char* what() const;
private:
const char* pMessage;
};
// Derived exception class
class MoreTrouble : public Trouble {
public:
MoreTrouble(const char* pStr = "There's more trouble");
};
// Derived exception class
class BigTrouble : public MoreTrouble {
public:
BigTrouble(const char* pStr = "Really big trouble");
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -