I have a function getToken
, I want to pass it an istream
to read from and use it. Here is given code. Please help me understand how to work with the istream
pointer when passed as parameter.
Token getToken(istream *br, string& lexeme){
return DONE;//ignore this statement, its part of my needs for istream
}