3

I have this object:

istringstream ob_stream;

I need to convert this object to string and char array for work. How to do?

user1779502
  • 573
  • 2
  • 8
  • 16

1 Answers1

5

For a std::string:

ob_stream.str();

for a char array:

ob_stream.str().c_str();

JBentley
  • 6,099
  • 5
  • 37
  • 72