Difference between putback() and unget()
<p>I'm using a Standard iostream to get some input from a file, and I'm confused about <code>unget()</code> versus <code>putback(character)</code>. It seems to me from the documentation that these functions are effectively identical, where <code>unget()</code> just remembers the character put in, so I'm nervous. I've always used <code>putback(character)</code>, but <code>character</code> is always the last read character and I've been thinking about changing to <code>unget()</code>. Is <code>putback(character)</code> always identical to <code>unget()</code>, if <code>character</code> is always the last read character?</p>
