2009年8月10日

摘要: In computer programming, a pre-compiled header is a technique used by some C or C++ compilers to reduce compilation time.In the C and C++ programming languages, a header file is a file whose text may be automatically included in another source file by the compiler, usually specified by the use of co 阅读全文
posted @ 2009-08-10 12:45 做个不善的人 阅读(2595) 评论(0) 推荐(0)
 
摘要: 1. 指向const对象的指针到目前位置,我们使用指针来修改其所指对象的值.但是如果指针指向const对象,则不允许用指针来改变其所指的const值.为了保证这个特性,C++语言强制要求指向const对象的指针也必须具有const特性:const double *cptr; //cptr may point to a double that is const这里的cptr是一个指向double类型的const对象的指针,const限定了cptr指针所指向的对象类型,而并非cptr本身,也就是说,cptr本身并不是const.在定义时不需要对它进行初始化,如果需要的话,允许给cptr重新赋值,使 阅读全文
posted @ 2009-08-10 10:42 做个不善的人 阅读(1581) 评论(0) 推荐(0)