当前位置:网站首页>See how names are added to namespace STD from cmath file
See how names are added to namespace STD from cmath file
2022-07-08 01:57:00 【Haohong image algorithm】
std by C++ Standard namespace in ,C++ There are all kinds of names in the standard library of .
The following is a standard namespace std Example .
#include <cmath>
#include <iostream>
using namespace std;
int main()
{
float x = 3.6;
int y = round(x);
cout << "y is:" << y << endl << endl;
}
The operation results are as follows :
In the code above , name round、cout、endl All are std Name in space .
Standard library math The function name in is also added to std In the space ,
file cmath Baidu online disk download link :
https://pan.baidu.com/s/1NZClfWR5ARG0WNdOOe0mZQ?pwd=wb7i
Let's take a look cmath How to put the document math The function name in is introduced into std In the space .
The screenshot is as follows :
From the screenshot above, we can see , Introduce the name into std Space ,
The starting statement is :
_STD_BEGIN
If we want to put the name abs introduce std Space , Write like this :
using _CSTD abs;
Write the name you want to add , End as follows :
As can be seen from the screenshot above , With
_STD_END
ending .
That's about it .
边栏推荐
- What are the types of system tests? Let me introduce them to you
- 如何让导电滑环信号更好
- adb工具介绍
- Node JS maintains a long connection
- Capability contribution three solutions of gbase were selected into the "financial information innovation ecological laboratory - financial information innovation solutions (the first batch)"
- Summary of log feature selection (based on Tianchi competition)
- WPF 自定义 写实风 雷达图控件
- Flutter 3.0框架下的小程序运行
- Is it necessary for project managers to take NPDP? I'll tell you the answer
- 滑环使用如何固定
猜你喜欢
随机推荐
Codeforces Round #649 (Div. 2)——A. XXXXX
Anaconda3 download address Tsinghua University open source software mirror station
In depth analysis of ArrayList source code, from the most basic capacity expansion principle, to the magic iterator and fast fail mechanism, you have everything you want!!!
adb工具介绍
2022国内十大工业级三维视觉引导企业一览
【SolidWorks】修改工程图格式
发现值守设备被攻击后分析思路
电路如图,R1=2kΩ,R2=2kΩ,R3=4kΩ,Rf=4kΩ。求输出与输入关系表达式。
How to fix the slip ring
快速熟知XML解析
Reading notes of Clickhouse principle analysis and Application Practice (7)
Introduction to ADB tools
Urban land use distribution data / urban functional zoning distribution data / urban POI points of interest / vegetation type distribution
ANSI / NEMA- MW- 1000-2020 磁铁线标准。. 最新原版
进程和线程的退出
From starfish OS' continued deflationary consumption of SFO, the value of SFO in the long run
burpsuite
咋吃都不胖的朋友,Nature告诉你原因:是基因突变了
能力贡献 GBASE三大解决方案入选“金融信创生态实验室-金融信创解决方案(第一批)”
Why does the updated DNS record not take effect?