求教C++大神,error C2678: 二进制“!=”: 没有找到接受“std::ifstream”类型的左操作数的运算符?
#include<iostream>
#include<fstream>
#include<string>
using namespace std;
int main()
{
ifstream fin("1.txt");
while (fin!=NULL)
{
int a;
char str[10];
fin >> a;
fin >> str;
cout << a << "+char" << str << endl;
}
}