摘要:
常指针 *:const在左侧为常指针,在右侧为常变量的指针。 const Data_Type *point = &variable1; //无论variable1是否为常量, “*point = 5;”不能赋值,将出错。而point可以指向新的变量,如“point = &variable2;” Data_Type const *point = &variable1; //同上,但这个是标准写法... 阅读全文
posted @ 2009-04-28 17:06
Aloner
阅读(593)
评论(0)
推荐(0)

浙公网安备 33010602011771号