1 2 3
|
std::cout.setf(ios::fixed);
std::cout.setf(ios::showpoint);
std::cout.precision(2);
| |
Last edited on
You need to properly scope items from the std namespace, much like you did with std::cout.
std::cout.setf(std::ios::fixed);
ohhh, I did not realise ios was a part of std, I thought ios was it's own namespace.
Last edited on