I found this question already asked, but the answer everybody gives is
std::cout << std::setw(5) << std::setfill('0') << value << std::endl;
which is fine for positive numbers, but with -5, it prints:
000-5
Is there a way to make it print -0005 or to force cout to always print at least 5 digits (which would result in -00005) as we can do with printf?