?? myexception.h
字號(hào):
#ifndef myException_H
#define myException_H
#include <string>
#include <iostream>
using namespace std;
class myException
{
public:
// int: error code, string is the concrete error message
myException(int,const string&);
~myException() {};
/*
how to handle the exception is done here, so
far, just write the message to screen and log file
*/
virtual void response();
int getErrCode() { return errorCode; }
string& getErrMsg() { return errorMsg; }
private:
void initVars();
private:
int errorCode;
string errorMsg;
};
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -