?? exceptions.cpp
字號:
#include "Common.h"#include "Exceptions.h"#include <ostream>HVException::HVException(string msg){ m_msg = msg;}string HVException::GetMessage() const{ printf("%s\n", m_msg.c_str()); return m_msg;}ostream& HVException::output(ostream& os) const{ return os << m_msg;}ostream& operator<<(ostream& os, const HVException& ite) { return ite.output(os);}HVEFile::HVEFile(string filename, string msg) : HVException("error with file "+filename+":\n"+msg), m_filename(filename){}HVEFileNotFound::HVEFileNotFound(string filename) : HVEFile(filename, "could not find or open file"){}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -