Hello,
I have the following code:
`#include <iostream.h>
void main()
{
double test=3.46578953218549;
cout.setf(ios::dec);
cout<<test;
}`
I understand that iostream.h is outdated and Microsoft Visual Studio has iostream.
However, When I remove the ".h" the setf, ios, etc, line 6 has multiple errors.
So, my question is: How do I set the number of decimal places without having "setprecision(51)" in every cout line, as such:
`#include <iostream.h>
void main()
{
double test=3.46578953218549;
cout<<std::setprecision(51)<<test;
}`
Or, where can I download iostream.h?
Joe