在cxx中写了类函数,编译报错:
error: declaration of 'str info' shadows a parameter
发现是因为局部变量info和参数名冲突引起的。
参考资料:
在cxx中写了类函数,编译报错:
error: declaration of 'str info' shadows a parameter
发现是因为局部变量info和参数名冲突引起的。
参考资料:
本文标题:cxx-shadows-parameter
本文链接:https://www.haomeiwen.com/subject/vyvcmhtx.html
网友评论