65,211
社区成员
发帖
与我相关
我的任务
分享//define color type
typedef enum _color_t
{
RED=0,
BLUE,
YELLOW,
WHITE,
GREEN,
ORANGE
}color_t;
//define side type,every side is a 3*3 matrix of color_t
typedef color_t side_t[3][3];
side_t* pside;
*pside=new side_t;//提示无法从“color_t (*)[3]”转换为“color_t [3][3]”
pside=new side_t[];
side_t* pside;
*pside=new side_t;//提示无法从“color_t (*)[3]”转换为“color_t [3][3]”side_t* pside;
pside=new side_t;//
side_t* pside;
pside= new color_t[3][3][3];
color_t(*p)[3];
p=new color_t[3][3];