要构建对用户操作做出响应的代码,就需要编写在操作发生时执行的代码。
Building the code to respond to a user's actions consists of writing code to act upon that action.
为了测试访问硬件的代码,必须编写一段按照与硬件相似的方式做出响应的代码。
To test code that accesses hardware, you must write a piece of code that responds in a way similar to the hardware.
使用结构化异常处理,您的代码就可以区分不同类型的错误并做出相应响应。
With structured exception handling, your code can differentiate between different types of errors and react accordingly.
应用推荐