📄 cxtest.cpp
字号:
#define WANT_MATH
#define WANT_STREAM
#include "include.h"
#include "array1.h"
#include "cx.h"
#include "cxtest.h"
int my_main()
{
Real MaxDiff1, MaxDiff2;
MaxDiff1 = cxtest1();
MaxDiff2 = cxtest2();
cout << endl;
cout << "maximum from cxtest1: " << MaxDiff1 << endl;
cout << "maximum from cxtest2: " << MaxDiff2 << endl;
cout << endl;
return 0;
}
// call my_main() - use this to catch exceptions
// use macros for exception names for compatibility with simulated exceptions
int main()
{
Tracer tr("main ");
Try { return my_main(); }
Catch(BaseException) { cout << BaseException::what() << "\n"; }
CatchAll { cout << "\nProgram fails - exception generated\n\n"; }
return 0;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -