6
在C++中,我們有以下幾點:聲明const指針爲int?
int* p1; // pointer to int
const int* p2; // pointer to constant int
int* const p3; // constant pointer to int
const int* const p4; // constant pointer to constant int
和d:
int* p1; // pointer to int
const(int)* p2; // pointer to constant int
?? ?? ?? // constant pointer to int
const(int*) p4; // constant pointer to constant int
什麼是對constant pointer to int
語法?
,也不是C++ - 風格的尾部常量(在同一頁上)。 – DejanLekic 2011-12-14 11:48:15