error C2679:
这是我编的一个读取文件的程序中的一段代码:
unsigned char depth;
for(int j=0;j<1728;j++)
{
ar>>depth;
}
BEAMINFO sBeamInf[24];//BEAMINFO为10字节长度的一个结构体,包含5个变量,每个变量长度为2个字节,我要读24个这样的结构体//
for(int k=0;k<24;k++)
{
ar>>sBeamInf[k];//这里出错
}
出现错误:
error C2679: binary '>>' : no operator defined which takes a right-hand operand of type 'struct _BEAMINFO_H' (or there is no acceptable conversion)
各位高手帮忙看看,谢谢了!!!