How do I pass an istream to a function so that when the function is finished the input is at the last character read? I have tried passing by reference...
Code:
void readInput(istream& input)
{
.
input >> data;
.
}
when it is finished input is back at the top of the file... I need it at the last character read.