如有不當之處歡迎批評指正 1.定義const對象 const限定符把一個對象轉換成一個常量。 const int a = 3;// ok a = 0;// error,a在定義後其內容不能被修改 contst int b;