【发布时间】:2011-02-22 21:23:56
【问题描述】:
现在 c++ 给我这个错误:error C2087 'color' missing subscript 我第一次得到这个,我不知道该怎么办>。
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();
...等
【问题讨论】: