?? 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;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -