⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arrays-debug.texi

📁 A C++ class library for scientific computing
💻 TEXI
字号:
@node Array debug@section Debug mode@cindex debugging mode@cindex bounds checking@cindex Array bounds checkingThe Blitz++ library has a debugging mode which is enabled by defining thepreprocessor symbol @code{BZ_DEBUG}.  For most compilers, the command lineargument @code{-DBZ_DEBUG} should work.In debugging mode, your programs will run @emph{very slowly}.  This isbecause Blitz++ is doing lots of precondition checking and bounds checking.When it detects something fishy, it will likely halt your program anddisplay an error message.For example, this program attempts to access an element of a 4x4 array whichdoesn't exist:@smallexample@include examples/debug.texi@end smallexampleWhen compiled with @code{-DBZ_DEBUG}, the out of bounds indices are detectedand an error message results:@smallexample@include examples/debug.out@end smallexamplePrecondition failures send their error messages to the standard error stream(@code{cerr}).  After displaying the error message, @code{assert(0)} isinvoked.  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -