原创 const

const 限定符,它把一個對象轉換成一個常量       1、限定寫權限,將變量變成只讀       const int a=10;表示a是一個常變量不可修改。也可以表示爲int const a=10;       2、const修飾它