08 2013 档案

摘要:1.constconst int a = 23 ;const 对象默认为文件的局部变量假如const int a = 23定义在file1.c中,那么同一个程序中的file2文件就无法通过extern来使用file1中的a了 但是// file1extern const int a =12 ;// file2extern const int a ; // use a from file1非const变量默认为extern,要使const变量能在其他文件中访问,必须显示的指定为extern2. reference: 对象的另一个名字。不能定义引用类型的引用,但可以定义任何其他类型的引用。引用必须 阅读全文
posted @ 2013-08-06 08:51 hunteo 阅读(442) 评论(0) 推荐(0)