A question about setprecision

I want to input some data with fixed precision. Unfortunately, I always meet an error like:
Error: Function setprecision(5) is not defined in current scope readnum.C:14:
Error: >> Illegal operator for real number readnum.C:14:
Error: >> Illegal operator for real number readnum.C:14:
Error: >> Illegal operator for real number readnum.C:14:
Error: >> Illegal operator for real number readnum.C:14:
*** Interpreter error recovered ***

Thanks a lot
readnum.C (333 Bytes)
runnmb.txt (28 KB)

You need to include a C++ standard library for that:

Go to: cplusplus.com/reference/iostream … precision/