. Advertisement .
..3..
. Advertisement .
..4..
I am new to cpp and would like to explore ‘setprecision’ was not declared in this scope. I hope to find some some guidances on this topic.
This is the program that caused this error
cout << fixed << setprecision(2);
You have not declared #include <iomanip>. Hope that my example would help
I also get the same error when I run the following program