这段代码中定义的是一个枚举类型enum Color RED BLUE GREEN WHITE YELLOW ORANGE ;所以在代码中cuberotateUP CLOCKWISE;会报错应该怎么改class ThistlethwaiteSolver private Cube cube; public void solveCubeState state 使用 Thistlethwai
在代码中cube.rotate(UP, CLOCKWISE);会报错,应该改为cube.rotate(UP, Cube::CLOCKWISE);,因为枚举类型Color是在类Cube中定义的,所以需要使用作用域限定符来访问。
原文地址: https://www.cveoy.top/t/topic/b1mY 著作权归作者所有。请勿转载和采集!