laexcp.h
来自「完全使用C++写的高效线性代数运算库!还提供了矩阵类。」· C头文件 代码 · 共 29 行
H
29 行
// LAPACK++ (V. 1.1)// (C) 1992-1996 All Rights Reserved.//// C++ exception handling is not currently supported by most compilers.// The macros below allow one to "mimic" the throw expression of// character strings. Transfer of control does not correspond// to a "try" block, but rather exits the program with the proper// banner. This is a similar behavior to the real exception handling// if there was no explicit user-supplied try block.//#ifndef _LA_EXCEPTION_H_#define _LA_EXCEPTION_H_#include <iostream.h>#include <stdlib.h>#define LaException(where, what) where , what#define throw throw_inline void throw(const char *where, const char *what){ cerr << "Exception: " << where << " " << what << endl; exit(1);}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?