guzhilei1986/
共170个网摘 [
1 2 3 4 5 6 ]
下一页 |
访问guzhilei1986的个人空间
guzhilei1986收录,时间:2008-3-18 9:57:14 | 相关网摘,我也收藏
右左法则”[重要!!!]
The right-left rule: Start reading the declaration from the innermost parentheses, go right, and then go left. When you
encounter parentheses, the direction should be reversed. Once everything in the parentheses has been parsed, jump out of it.
Continue till the whole declaration has been parsed.
这是一个简单的法则,但能让你准确理解所有的声明。这个法则运用如下:从最内部的括号开始阅读声明,向右看,然后向左看。当你碰到一
个括号时就调转阅读的方向。括号内的所有内容都分析完毕就跳出括号的范围。这样继续,直到整个声明都被分析完毕。
对上述“右左法则”做一个小小的修正:当你第一次开始阅读声明的时候,你必须从变量名开始,而不是从最内部的括号。
下面结合例子来演示一下“右左法则”的使用。
http://topic.csdn.net/u/20080318/09/e5a2a730-0265-4809-b7c9-5f4073ee671c.html
共170个网摘 [
1 2 3 4 5 6 ]
下一页