help
help. im getting non-lvalue in assignement error.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
while (true)
{
for (i=1; i<= g && ! file_in.eof(); i++)
{
file_in.getline(input_line, COL_WIDTH);
cout << input_line << endl;
}
if(file_in.eof()) break;
cout << "More? Enter number of lines(press q and entet ro quit): ";
cin.getline(input_line, COL_WIDTH);
c = input_line[0];
if(c =='Q' || c == 'q') break;
atoi(input_line) = g;
}
system("PAUSE");
return 0;
}
|
but i dont know what to do to change it.
the error happens in
atoi(input_line) = g;
g = atoi(input_line);
Topic archived. No new replies allowed.