M
Mike Wahler
supratik chakraborty said:I am not getting any output for the following lines of code...
while(line_buf>>value)
{
cout<<"Pushing a value in the list"<<endl;
line_list.push_front(value);//add the value to the list
cout<<"Got the value in the list"<<endl;
}
The above given code isn't executed.For some reason the while loop in the
code doesn't gets executed.
I have defined line_buf as the following:
std::istringstream line_buf(line);
What are the definition and contents of 'line'?
-Mike