I try to read from a file but it keep giving me this error and i dont know what the error mean. I try and google it but didnt see any solution.
Code:#include<iostream>#include<iomanip>
#include<fstream>
using namespace std;
int main()
{
string iteam;
int unit();
double unitCost(), totalValue();
ifstream inData;
ofstream outData;
inData.open("data.txt");
while(!inData.eof())
{
inData >> unit;
cout << unit;
}
return 0;
}