taking input directly to an ADT such as a stack.

Started by
10 comments, last by Kevn 12 years ago
Perhaps operator>> should be modified to do something closer to what it does for standard types (e.g., std::string). It probably should skip over whitespace. Not that overloading an operator to do this was a good idea to begin with or anything...
Advertisement
using cin.ignore(256, '\n'); at the end of my function fixed it :) Thank you.

This topic is closed to new replies.

Advertisement