I have a method that needs to pass in an istream as a parameter:
istream has three subsets, correct? iostream, ifstream, istringstreamCode:int readRouteData(istream & inSource);
Now i'm not clear on exactly what an istream is - "istream objects are stream objects used to read and interpret input from sequences of characters" - or how I would go about using one. Aren't cin/cout part of iostream? What is the point of passing in an istream to a method instead of retrieving the data beforehand and passing in the string instead? How would I go about declaring an istream variable?