I execute the following code:
#include <iostream> #include <sstream> int main() { std::stringstream stream; stream<<123456789<<std::endl; std::cout<<stream.str()<<std::endl; return 0; } Screen output: 123,456,789. I would like to receive: 123456789
I’m wondering how to make sure that when writing a number to stream no commas are added.