出现“shadows a parameter”的原因是:const int a和const int b均隐藏(覆盖)了一个参数,也就是说,这里发生了“重定义”的错误。
很有可能是,变量a和b已经存在了。
本文探讨了出现“shadowsaparameter”错误的原因,即 constinta 和 constintb 覆盖了一个参数导致的重定义问题,并提示变量 a 和 b 可能已存在。
出现“shadows a parameter”的原因是:const int a和const int b均隐藏(覆盖)了一个参数,也就是说,这里发生了“重定义”的错误。
很有可能是,变量a和b已经存在了。
3万+
1071

被折叠的 条评论
为什么被折叠?