The C programming Language -1.10 External Variables and Scope
来源:互联网 发布:天谕捏脸数据玉虚男 编辑:程序博客网 时间:2024/05/21 10:24
By the way, there is a tendency to make everything in sight an extern variable because it appears to simplify communications-argument lists are short and variables are always there when you want them. But external variables are always there even when you don't want them. Relying too heavily on external variables is fraught with peril since it leads to programs whose data connections are not all obvious-variables can be changed in unexpected and even inadvertent ways, and the program is hard to modify. The second version of the longest-line program is inferior to the first, partly for these reasons, and partly because it destroys the generality of two useful functions by writing into them the names of the variables they manipulate.
外部变量要慎用,过渡依赖外部变量会导致一定的风险。而且在改写longest-line program的时候,因为把函数操作的变量写进了函数内部,破坏了函数的通用性。
- The C programming Language -1.10 External Variables and Scope
- The C programming language
- the c programming language
- The C Programming Language
- "The C Programming Language", 2nd edition, Kernighan and Ritchie
- The C Programming Language Example and Python Implemented
- 翻译《the c programming language》
- The C Programming Language--------(1)
- The C Programming Language 笔记
- 《The C Programming Language》笔记
- the C programming language 练习
- 翻译 The C programming language
- The C programming language 4.1
- <The C programming language> 5.2
- <The C programming language> 5.9
- <<The C programming Language>>推荐
- Regular Expressions and the Java Programming Language
- 《The Scratch Programming Language and Environment》翻译
- JQuery显示隐藏层
- Learning Python(7) Files
- Thrift入门及Java实例演示
- EditText自动弹出输入法问题
- virtualbox中fedora17安装增强工具失败 Building the main Guest Additions module [失败]
- The C programming Language -1.10 External Variables and Scope
- 小菜的ArcObjects学习之路------如果通过MapDocument访问地图和图层
- JAVA原创学习(—)
- 首发Zend Studio 9.0.3正式版注册破解
- EditText属性
- 走在逐渐成熟的道路上
- C# 写定时器(不拖控件)
- Android 视频播放器
- 注销了人人网账号