@2017-12-16
緣由
在學習c++標準的過程中(受刺激了),對於標題中的一些東西發現理解不到位啊。
int a =10;
const int a = 10;
10 是字面量
a 是變量
const int a 是常量
參考 http://zh.cppreference.com/w/cpp/language/string_literal
參考 https://www.cnblogs.com/catch/p/3500678.html
@2017-12-16
在學習c++標準的過程中(受刺激了),對於標題中的一些東西發現理解不到位啊。
int a =10;
const int a = 10;
10 是字面量
a 是變量
const int a 是常量
參考 http://zh.cppreference.com/w/cpp/language/string_literal
參考 https://www.cnblogs.com/catch/p/3500678.html