Sixty years into the computer age, we still aren't checking basic things like the success of opening a file or whether memory allocation succeeds.
计算机的诞生已进入了六十个年头,我们仍旧没有检查基本的东西,如成功打开一个文件及内存分配是否成功。
This information can be used for various purposes, such as verifying the unzipped file size or just creating a listing of the contents of a zip file without opening it.
这些信息可用于各种目的,例如检验解压缩后的文件大小或只创建ZIP文件的内容清单而不打开它。
While this simple example of opening a file is still pretty understandable, things have definitely gotten more complicated.
这个简单的例子中,打开文件的代码还是容易理解的,不过接下来事情就很明显地变得愈来愈复杂了。
应用推荐