C++规定,不能将A**转换为const A**。(在c语言中是可以的,但是在c++中被修正。) 原因:转载 https://blog.csdn.net/duyiwuer2009/article/details/39401801