第一次接触c++之前都是c c++的头文件是加 #include <stdio.h>吗
一般是只需要
#include <iostream>
// 如果需要其他的请加在这里
using namespace std;
//如果你用到了一些东西,可能还需要其他的头文件
//如string 你需要
#include <cstring>
有用记得给个采纳呐
#include <stdio.h>是C语言的头文件
C++大部分是
#include <iostream>
using namespace std;
头文件具体看代码中使用的函数
#include <stdio.h>里是输入输出的。
math.h是数学计算相关,比如开方之类
string.h是字符串相关的。
没用到的可以不加
你说的那个是c c++是
#ifndef CIRCLE_H
#define CIRCLE_H
//你的代码写在这里
#endif