Instead of human being's counting error, which only results one or two counting error in number, an error in the program code could cause tramendous error in number.
人类的计数错误只会导致一到两个数字错误,而程序代码中的一个错误可能会导致数字上的严重错误。
This program could naturally be extended to display an appropriate error message, which is explained next.
该程序可以被自然地扩展为显示适当的错误消息,我们在下一步将解释它。
Listing 10 demonstrates the complete finished program, including all error handling.
清单10展示了完整的程序,包括所有错误处理。
During a hang, the program seems to be paralyzed, no error messages are displayed, and the screen freezes or the application does not respond to users' actions.
在挂起期间,程序看起来像已瘫痪,也不显示错误消息,并且屏幕冻结或者应用程序不响应用户的动作。
This error occurs if a program passes an invalid pointer value or if the length of the buffer is too small.
如果程序传递了无效的指针值,或者如果缓冲区的长度太小会发生此错误。
When a client or supervisor dictates how a program should process well-formed input data, take the opportunity to agree in detail on how the program should act in case of error.
当客户或主管在指示程序应如何处理格式良好的输入数据时,抓住机会,对万一发生错误时程序的具体操作细节同他们达成共识。
Your error messages and actions merit as much craftsmanship as the rest of your program.
错误消息及对应操作同程序的其它部分相比,值得花同样多的技术。
In this program, we add another function for error handling.
在这个程序中,我们添加了另一个用于错误处理的函数。
In Listing 1, you'll find a short program that tries to open a file that is unlikely to exist and reports the error to whomever is running the program, using two different techniques.
在清单1中,您将看到一个简短程序,该程序尝试打开一个不太可能存在的文件,并使用两种不同的方法向运行该程序的用户报告错误。
Very often, tests are less complex than the eventual production environment, so a program can contain a memory corruption error that will wreak havoc after release even though the tests all pass.
十分普遍地情况是,测试环境并没有最终的产品环境复杂,因此即使测试都通过了,程序也能够包含一个在发布版本后即将引起严重破坏的内存崩溃性的错误。
It can become hard to find the actual program logic in all that error recovery code.
在大量错误复原代码中,很难发现实际的程序逻辑。
The standard C library (and thus, every UNIX program) defined three standard streams: input, output, and error.
标准C库(因而,每个UNIX程序)定义了三种标准流:输入、输出和错误。
The debugging information stored within a binary helps a programmer or debugger locate problem areas in a program, and find the stack trace when an error happens in an application.
二进制文件中存储的调试信息可以帮助程序员或调试人员寻找程序中出问题的地方,并在应用程序出错时找到栈跟踪。
That's where SAX can really help: it allows you to receive possibly bad data or error conditions before the program halts processing and gives you a chance to make course corrections.
这就是SAX的真正用途所在:在程序中断处理过程并进行修复之前,允许接收可能错误的数据或者错误状态。
The existing program uses trial and error, and pre-programmed mathematical rules that govern folding as understood today.
现有的程序利用试错法,指导折叠的已知数学规则也用到预编程中。
Shell redirection can be handy in capturing standard program output, error messages from a program, or both to text files.
Shell重定向可以方便地将标准程序输出、程序错误消息或者这两者捕获到文本文件。
Ccalc.c: The main program and some functions for input, output, and error processing.
c:主程序,以及一些进行输入、输出和错误处理的函数。
If there is an error, the program rolls back the transaction to the neworder savepoint.
如果出现错误的话,程序将把事务回滚到neworder保存点。
Because wib is in frame 0 that's the function the program was executing inside when the arithmetic error occurred.
由于wib在0号帧中,那么它就是执行程序时发生算术错误的函数。
Keep in mind when using the tools described in the MetaphoneSuggest program that a 404 page is an error condition.
记住,使用MetaphoneSuggest程序中所描述的工具时,错误条件必须为404页面。
The sample program checks for the error format in the event occurrence data if the select() call returned an error.
示例程序在事件发生数据中检查错误格式,判断select()调用是否返回了错误。
Now the program compiles without error and produces the output shown in Figure 5. Notice that javac also compiled the file fraction.java.
现在再编译程序,就不会出现错误,并会产生如图5所示的输出。
Now the program compiles without error and produces the output shown in Figure 4. Notice that javac also compiled the file fraction.java.
现在再编译程序,就不会出现错误,并会产生如图5所示的输出。
Using a debugger, put a breakpoint at the main function (or at the program location where you want to turn off Purify error reporting), and run the instrumented program.
利用一个调试器,将一个观察点main函数上(或者置于您想要关闭Purify错误报告的程序单元上),然后运行仪表化程序。
Once you know where an error occurs, you will want to see what the program is doing right before it crashes.
一旦了解到错误发生的位置,您可能想要知道在程序崩溃之前,程序在做什么。
The first method requires the program to check for error conditions after every non-trivial action.
第一种方法要求程序在在进行每一个重大操作之后,检查错误。
The first method requires the program to check for error conditions after every non-trivial action.
第一种方法要求程序在在进行每一个重大操作之后,检查错误。
应用推荐