Jennifer84 0 Posting Pro

I think I just did found this out:

Put.str("");

How is it possible to ´emty´ a std::stringstream. In this case Put contains: 10.

std::stringstream Put;
int i = 10;
Put << i;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.