这段代码中cuberotateUP CLOCKWISE;中报错Error UP was not declared in this scope;应该怎么改#include iostream#include vector#include stringusing namespace std; 定义魔方的颜色enum Color RED BLUE GREEN WHITE YELLOW ORANGE ;
将cube.rotate(UP, CLOCKWISE);改为cube.rotate(RED, CLOCKWISE);,因为UP并没有在代码中定义,而RED是定义了的。
原文地址: http://www.cveoy.top/t/topic/b1nY 著作权归作者所有。请勿转载和采集!