main.cpp
来自「VC源码,开源测试工具.有助于VC++的学习与开发」· C++ 代码 · 共 43 行
CPP
43 行
#include <iostream>#include <exception>#include <tut/tut_restartable.hpp>#include <tut/tut_reporter.hpp>using std::cerr;using std::endl;using std::exception;using tut::reporter;using tut::restartable_wrapper;namespace tut{ test_runner_singleton runner;}int main(){ cerr << "NB: this application will be terminated by OS four times\n" "before you'll get test results, be patient restarting it.\n"; try { reporter visi; restartable_wrapper restartable; restartable.set_callback(&visi); restartable.run_tests(); } catch (const exception& ex) { cerr << "tut raised ex: " << ex.what() << endl; } return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?