Skip to Content
C++程序设计:原理与实践(基础篇)(原书第2版)
book

C++程序设计:原理与实践(基础篇)(原书第2版)

by 本贾尼 斯特劳斯特鲁普
August 2021
Intermediate to advanced
450 pages
9h 36m
Chinese
Pearson
Content preview from C++程序设计:原理与实践(基础篇)(原书第2版)

7.6 清理代码

我们已经对程序做过几次修改,虽然性能每次都有所提高,但代码却变得有点乱。现在是一个很好的时机,重新检查代码,做适当的清理和简化,并增加一些注释以提高系统的可读性。换句话说,只有当代码达到易于他人接管和维护的状态,程序才算是编写完成。到目前为止,除了缺少注释外,计算器程序总体来说还是不错的,接下来我们进行一点清理工作。

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++语言导学(原书第2版)

C++语言导学(原书第2版)

本贾尼 斯特劳斯特鲁普
管理Kubernetes

管理Kubernetes

Brendan Burns, Craig Tracey
Go程序设计语言

Go程序设计语言

艾伦A. A.多诺万, 布莱恩W. 柯尼汉

Publisher Resources

ISBN: 9787111562252