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)