9.5 Example: insertion cursor and selection 示例:插入光标和选择 9.5 Example: insertion cursor and selection 示例:插入光标和选择 The next sections work through three examples that illustrate the ...
9.7 Example: editor undo mechanism 示例:编辑器撤消机制 9.7 Example: editor undo mechanism 示例:编辑器撤消机制 In the GUI editor project from Section 6.2, one of the requirements was to support m...
9.6 Example: separate class for logging 示例:用于记录的单独类 9.6 Example: separate class for logging 示例:用于记录的单独类 The second example involved error logging in a student project. A class ...
8.1 Example: editor text class 示例:编辑器文本类 8.1 Example: editor text class 示例:编辑器文本类 Consider the class that manages the text of a file for a GUI text editor, which was discussed ...
10.4 Example: file deletion in Windows 示例:Windows 中的文件删除 10.4 Example: file deletion in Windows 示例:Windows 中的文件删除 File deletion provides another example of how errors can be de...
6.2 Example: storing text for an editor 示例:为编辑器存储文本 6.2 Example: storing text for an editor 示例:为编辑器存储文本 Let’s consider an example from a software design class in which students...
10.5 Example: Java substring method 示例:Java 子字符串方法 10.5 Example: Java substring method 示例:Java 子字符串方法 As a final example, consider the Java String class and its substring metho...
14.1 Example: bad names cause bugs 示例:名称错误会导致错误 14.1 Example: bad names cause bugs 示例:名称错误会导致错误 Sometimes even a single poorly named variable can have severe consequences. The ...