Is istream or ostream "object" assignable?
Let's say there's an expression like:
//to get the hexadecimal equivalent we can have
//the result would be 4e.
Ok good, now my question is, Instead of std::cout
-ing the result, is it possible to assign the result to either a char
You can use a stringstream, which is a string that can be treated as a stream (like cout). Then use .str() to get the string out of it.
Topic archived. No new replies allowed.