手抄报 安全手抄报 手抄报内容 手抄报图片 英语手抄报 清明节手抄报 节约用水手抄报

C语言putchar函数如何使用

时间:2024-10-14 11:57:58

1、先输入预处理命令的文件包含命令。#include <stdio.h>

C语言putchar函数如何使用

2、定义主函数。int main(){}记得把花括号写全。

C语言putchar函数如何使用

3、定义字符变量,并初始化。char a='L&#补朱锚卦39;, b='O', c='V',d='e';

C语言putchar函数如何使用

4、向显示器输出相应的字符。putchar(a); putchar(b); putchar(c); putchar(d);

C语言putchar函数如何使用

5、向显示器输出换行符。putchar('\n');return 0;

C语言putchar函数如何使用

6、点击编译按钮进行程序编译。

C语言putchar函数如何使用

7、运行之后结果如下。

C语言putchar函数如何使用
© 手抄报圈