In the main function a call for this function get_token() and within it i use a global var/input ist.get..
Ist is previously declared outside the main like this : istringstream ist(temp_string);
temp_string is a c++ string
My problem is that ist.get(ch) WONT get anything?Code:Token_value get_token() { char ch = 0; do // skip whitespace except '\n' { if(!ist.get(ch)) return curr_tok = END; }while(ch != '\n' && isspace(ch)); switch (ch) { case 0 : //...etc
when ist was declared within get_token it would work but now it just dont?
I dont get it..
any comment/sugestion/answers appreciated..
here is the full code just in case..