【发布时间】:2012-03-18 04:47:12
【问题描述】:
可能重复:
what is the difference between const int*, const int * const, int const *
谁能给我解释一下这种类型?
char const * const blah;
我本来希望它会写成这样的:const char *。 const 发布类型是什么意思?例如int const foo.
然后,第一句话是什么意思?
【问题讨论】:
-
分号在哪里?变量或函数或...名称在哪里?
-
抱歉,已修复。主要问题是我的大脑完全炸了。
-
没有任何赋值,这种类型是无用的。声明后不能更改 const
blah。
标签: c++