appexception.cpp
来自「用data miming技术进行false prediction」· C++ 代码 · 共 16 行
CPP
16 行
#include "AppException.h"
AppException::AppException(int code, string message, string name, int line) {
this->code = code;
this->msg = message;
this->sourceName = name;
this->sourceLine = line;
}
const string AppException::what() const {
string tmp = "Exception: ";
char buf[8];
sprintf(buf, "%d", sourceLine);
return tmp.append(msg).append(" [").append(sourceName).append(": ").append(buf).append("]");
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?