if (openFile(&fread, file))
{
int count1 = 0;
for (int count = 0; count < ROW; count++){
fread >> str >> a[0] >> a[1] >> a[2];
data[count1] = a[0];
data[count1 + 1] = a[1];
data[count1 + 2] = a[2];
count1 += 3;
}
error C2678: binary '>>' : no operator defined which takes a left-hand operand of type 'class ifstream' (or there is no acceptable conversion)
MFC 使用ifstream读取文件的时候“<<”不合法什么鬼
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-