1、比如我们想溽朽孑臾查看sqrt()函数在头文件cmath中的定义#include <iostream>#足毂忍珩include <cmath>using namespace std;int main() { cout<<sqrt(4.0)<<endl;return 0;}
2、令光标停留在cmath上,然后右击,出现右键菜单,单击打开<cmath>文档
3、<cmath>文件即可打开,如图所示:
4、同理:若要打开<cmath>头文件下的<math.h>令光标在<math.h>上,然后右击出现右键菜单。选打开<math.h>文档即可。
5、如图显示打开的<math.h>头文件
6、最后在math.h中查找sqrt关键字,即可找到sqrt函数的声明