C/C++掌握技能(一)

  

1、在编译器中输入代码并将其保存为.cpp文件(C语言的文件扩展名.c,但为了使用C++中的一些好用的特性,请把文件扩展名改为C++的.cpp)
2、等价头文件:
#include<stdio.h>和#include<cstdio>
#include<math.h>和#include<cmath>
#include<string.h>和#include<cstring>

 

猜你喜欢

转载自www.cnblogs.com/King-boy/p/10685115.html
今日推荐