Tag/
共142个网摘 [
1 2 3 4 5 ]
上一页 |
下一页 |
jizhouli2收录,使用标签:指针,时间:2008-4-20 22:09:05 | 相关网摘,我也收藏
超强的指针学习笔记
摘录的别人的:
C语言所有复杂的指针声明,都是由各种声明嵌套构成的。如何解读复杂指针声明呢?右左法则是一个既著名又常用的方法。不过,右左法则其实并不是C标 准里面的内容,它是从C标准的声明规定中归纳出来的方法。C标准的声明规则,是用来解决如何创建声明的,而右左法则是用来解决如何辩识一个声明的,两者可 以说是相反的。右左法则的英文原文是这样说的:
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://blog.csdn.net/xueyong1203/archive/2008/03/13/2177260.aspx
共142个网摘 [
1 2 3 4 5 ]
上一页 |
下一页