C++经验:常用的头文件
沝㴇淼㵘 更多可见https://bbs.csdn.net/topics/350008664
C++的头文件很多,这里就说常用的头文件.
#include<iostream>//引入C++语言输入输出流
#include<cstdio>//引入C语言输入输出流并用C++打开 ①
#include<algorithm>//引入此头文件后可用此文件的各种函数 ②
#include<cmath>//引入包含数学函数的头文件 ③
//后面的头文件有点少用Ø≒Ø
#include<string>//引入字符串等
#include<cstring>//引入C语言的字符串等 ④
#include<vector>//引入动态数组 ⑤
#include<queue>//引入队列 ⑥
#include<stack>//引入栈 ⑦
#include<set>//引入集合 ⑧
#include<map>//引入映射表 ⑨
①常用的有freopen(……);
,scanf(……);
,printf(……);
②该头文件包含了一些算法,程序开头加zhi上这个头文件,就可以直接调用里面的函数了,不用再自己手写。但是一些复杂的算法还是要自己写的。另外可以看看这个http://www.cplusplus.com/reference/algorithm/
③山么事此,可见我的博客:https://blog.csdn.net/Keven_11/article/details/107660003
④常用的函数有memset(……);
⑤山么事此,可见我的博客::::::::::::::::::https://blog.csdn.net/Keven_11/article/details/107686952
⑥山么事此,可见::::::::::::::::::::::https://blog.csdn.net/zichen_ziqi/article/details/80819939
⑦山么事此,可见https://edu.csdn.net/course/detail/1405?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522159644428619724843307003%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=159644428619724843307003&biz_id=3&utm_medium=distribute.pc_search_result.none-task-course-2allfirst_rank_ecpm_v3~pc_rank_v2-2-1405.first_rank_ecpm_v3_pc_rank_v2&utm_term=%E6%A0%88&spm=1018.2118.3001.4187
⑧山么事此,可见:https://blog.csdn.net/qq_39450326/article/details/75949511?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522159644462319195264519452%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=159644462319195264519452&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v3~pc_rank_v2-1-75949511.first_rank_ecpm_v3_pc_rank_v2&utm_term=C%2B%2B%E9%9B%86%E5%90%88&spm=1018.2118.3001.4187
⑨山么事此,可见:https://blog.csdn.net/baobei0112/article/details/79445096?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522159644468019724839258213%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=159644468019724839258213&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allfirst_rank_ecpm_v3~pc_rank_v2-1-79445096.first_rank_ecpm_v3_pc_rank_v2&utm_term=C%2B%2B%E6%98%A0%E5%B0%84%E8%A1%A8&spm=1018.2118.3001.4187
·········································································
··················································································································································
··················································································································································
··················································································································································
·········································································
更多可见https://bbs.csdn.net/topics/350008664