Why does the get function read the character 'e' when called in the 9th line of the code? Why not 'H'? Is the std::istringstream object s1 responsible for this action or is this due to the properties of the get() function?
Also, in the following function definition of get()
Again, no expert, but i would say it is from the properties of the get() function. The get() function is just reading the next character it is supposed to read in the stream. s1 is just the stream itself.
I would answer the streambuf, but I have limited knowledge at the moment. it looks like it would be like cin, but again not sure.