📄 errorcorrelatortest.cpp
字号:
#include "ErrorCorrelator.h"#include <iostream>using namespace std;int main(int argc, char** argv){ ErrorCorrelator ec; ec.addError(Error(3, "Unable to read file")); ec.addError(Error(1, "Incorrect entry from user")); ec.addError(Error(10, "Unable to allocate memory!")); while (true) { try { Error e = ec.getError(); cout << e << endl; } catch (out_of_range& ) { cout << "Finished processing errors\n"; break; } } return (0);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -