I am inserting some int
s in my ostream
but big numbers or even years, like 3000
or 25000123
are being formatted like this 3.000
or 25.000.123
.
I am not sure why this is happening. It might be because I usedd imbue("")
on the stream so decimal numbers were shown like this 14,53
instead of 14.53
but I commented that line and everything stays the way it was.
I just want to get rid of those dots when getting numbers in the outstream (but I don't want to get rid of the decimal comma either). How can I do this?
I thought maybe the iomanip
library would help but I didn't find anything regarding this situation.
std::ostream& operator <<(std::ostream& os, const Article& a) {
os << a.title() << a.pub_date().year() << ". " << a.price() << "";
return os;
}