‘setprecision’ is not a member of ‘std’

前端 未结 1 1376
说谎
说谎 2020-12-30 19:10

Errors:

~> g++ ssstring.cpp
ssstring.cpp: In function ‘int main()’:
ssstring.cpp:12:31: error: ‘setprecision’ is not a member of ‘std’
ssstring.cpp:12:52:         


        
相关标签:
1条回答
  • 2020-12-30 19:23

    You need to include header <iomanip> for std::setprecision and <limits> for std::numeric_limits. These references tell you which header to include.

    0 讨论(0)
提交回复
热议问题