ZKcy_c语言课程1

//#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;

}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值