当前位置:网站首页>Discover the joy of C language
Discover the joy of C language
2022-08-05 10:57:00 【51CTO】
1. Add a sentence in front of the return statement: getch ();, which means press any key
Bundle.2. Use the clrscr function to clear the screen before the printf statement, use this function and get
ch function, you need to include the header file conio.h.3 at the beginning of the program. ASCII code is also available
Many very interesting characters, such as ASCII code value 2 is a smiley face (1 is also), we can
Use printf("%c", 2) to output a smiley face.
Can also write simple selections
#include
Copy and use
边栏推荐
- 如何测试一下现场的备机失败,转发主机的场景?
- Login function and logout function (St. Regis Takeaway)
- 金融业“限薪令”出台/ 软银出售过半阿里持仓/ DeepMind新实验室成立... 今日更多新鲜事在此...
- The fuse: OAuth 2.0 four authorized login methods must read
- PCB layout must know: teach you to correctly lay out the circuit board of the op amp
- 这份阿里强推的并发编程知识点笔记,将是你拿大厂offer的突破口
- OpenHarmony如何查询设备类型
- R语言ggplot2可视化:可视化密度图(Density plot)、可视化多个分组的密度图、数据点分布在箱图中间、添加主标题、副标题、题注信息
- RT-Thread记录(一、RT-Thread 版本、RT-Thread Studio开发环境 及 配合CubeMX开发快速上手)
- 用KUSTO查询语句(KQL)在Azure Data Explorer Database上查询LOG实战
猜你喜欢
随机推荐
The fuse: OAuth 2.0 four authorized login methods must read
【加密解密】明文加密解密-已实现【已应用】
用户考试分数大于单科科目平均分的查询
脱光衣服待着就能减肥,当真有这好事?
一张图看懂 SQL 的各种 join 用法!
The host computer develops C# language: simulates the STC serial port assistant to receive the data sent by the microcontroller
使用Windbg过程中两个使用细节分享
华为分析&联运活动,助您提升游戏总体付费
Go compilation principle series 6 (type checking)
登录功能和退出功能(瑞吉外卖)
API 网关简述
SMB + SMB2: Accessing shares return an error after prolonged idle period
【OpenCV】-仿射变换
Dynamics 365Online PDF导出及打印
什么是 DevOps?看这一篇就够了!
What are the standards for electrical engineering
2022 Hangzhou Electric Power Multi-School Session 6 1008.Shinobu Loves Segment Tree Regular Questions
Use KUSTO query statement (KQL) to query LOG on Azure Data Explorer Database
如何测试一下现场的备机失败,转发主机的场景?
.NET深入解析LINQ框架(六:LINQ执行表达式)