//#include <stdio.h> //预处理指令
/*
#include <stdio.h>
#include 预处理
stdio std --> standard 标准
io --> input output 输入输出
.h --> 文件类型 header file 头文件
预处理指令 会将包含的头文件中的内容给装载到程序当中
stdio.h
以及 预定义的内容
*/
// CPU central processing unit
// 控制器 controller
// 运算器 Arithmetic unit
// 存储 memory
// 输入输出设备 input & output device
// B语言的基础上改进的,目的是为了unix系统的开发,贝尔实验室
#include <stdio.h>
#define PI 3.14
int main()
{
printf(" the area of circle is %f\n",PI*1*1);
return 0;
}
//int main()//主函数
/*
void main / int main()
可使用范围 C99 及部分版本 任何版本
不建议使用
主函数 是程序运行的开始,且c语言程序中有且只有一个main函数
函数必须要有返回值
*/
{
//printf(“hello,world\n”);//将""中的内容打印输出,遇到\n的时候,换行,\n在c语言的输出函数中表示换行
/*
转义字符:’’ 就是一个“杠精” ,他将字符原有的意思改变(部分设定的原有字符,如 n,t)
*/
#include <stdio.h>
int main()
{
//printf("\n");
//printf("\t");
//printf("\"\\n\"");//输出
//printf("123""456""789");
return 0;
}