现在 c++ 给我这个错误:错误 C2087 'color' 我第一次得到这个时缺少下标,我不知道该怎么做>。<希望 any1 可以帮助我
struct Color{
float r;
float g;
float b;
};
Color color[][];
我在这里使用它
for(int i=0;i<cubes;i++)
{
color[i][0].r = fRand();color[i][0].g=fRand(.5);color[i][0].b=fRand();
...ETC