ascii非打印控制字符表_C程序打印ASCII表/图表

ascii非打印控制字符表

什么是ASCII码? (What are ASCII Codes?)

ASCII stands for American Standard Code for Information Interchange; it is a character encoding standards for information interchange in electronics communication. Each alphabets, special characters, etc are represented by the ASCII code. An ASCII code takes 7 bits in the memory.

ASCII代表美国信息交换标准代码; 它是电子通信中信息交换的字符编码标准。 每个字母,特殊字符等均由ASCII码表示。 ASCII码占用内存中的7位。

Reference: ASCII Codes

参考: ASCII码

Here, we have to write a program in C programming language that will print the ASCII table. In this program, we are printing ASCII codes from 32 to 254 along with their character values. To print the values, we are using a for loop, where counter will start from 32 and stop on 254.

在这里,我们必须用C编程语言编写一个程序,该程序将打印ASCII表。 在此程序中,我们将打印从32到254的ASCII码及其字符值。 为了打印这些值,我们使用了for循环,其中计数器将从32开始并在254处停止。

程序在C中打印ASCII表 (Program to print ASCII table in C)

</ s> </ s> </ s>
//Program to print ASCII table.
#include <stdio.h>
int main()
{
unsigned char count;
for(count=32; count< 255; count+=1)
{
printf("  %3d - %c",count,count);
if(count % 6==0)
printf("\n");
}
return 0;
}

Output

输出量

  32 -     33 - !   34 - "   35 - #   36 - $
37 - %   38 - &   39 - '   40 - (   41 - )   42 - *
43 - +   44 - ,   45 - -   46 - .   47 - /   48 - 0
49 - 1   50 - 2   51 - 3   52 - 4   53 - 5   54 - 6
55 - 7   56 - 8   57 - 9   58 - :   59 - ;   60 - <
61 - =   62 - >   63 - ?   64 - @   65 - A   66 - B
67 - C   68 - D   69 - E   70 - F   71 - G   72 - H
73 - I   74 - J   75 - K   76 - L   77 - M   78 - N
79 - O   80 - P   81 - Q   82 - R   83 - S   84 - T
85 - U   86 - V   87 - W   88 - X   89 - Y   90 - Z
91 - [   92 - \   93 - ]   94 - ^   95 - _   96 - `
97 - a   98 - b   99 - c  100 - d  101 - e  102 - f
103 - g  104 - h  105 - i  106 - j  107 - k  108 - l
109 - m  110 - n  111 - o  112 - p  113 - q  114 - r
115 - s  116 - t  117 - u  118 - v  119 - w  120 - x
121 - y  122 - z  123 - {  124 - |  125 - }  126 - ~
127 -   128 - Ç  129 - ü  130 - é  131 - â  132 - ä
133 - à  134 - å  135 - ç  136 - ê  137 - ë  138 - è
139 - ï  140 - î  141 - ì  142 - Ä  143 - Å  144 - É
145 - æ  146 - Æ  147 - ô  148 - ö  149 - ò  150 - û
151 - ù  152 - ÿ  153 - Ö  154 - Ü  155 - ¢  156 - £
157 - ¥  158 - ₧  159 - ƒ  160 - á  161 - í  162 - ó
163 - ú  164 - ñ  165 - Ñ  166 - ª  167 - º  168 - ¿
169 - ⌐  170 - ¬  171 - ½  172 - ¼  173 - ¡  174 - «
175 - »  176 - ░  177 - ▒  178 - ▓  179 - │  180 - ┤
181 - ╡  182 - ╢  183 - ╖  184 - ╕  185 - ╣  186 - ║
187 - ╗  188 - ╝  189 - ╜  190 - ╛  191 - ┐  192 - └
193 - ┴  194 - ┬  195 - ├  196 - ─  197 - ┼  198 - ╞
199 - ╟  200 - ╚  201 - ╔  202 - ╩  203 - ╦  204 - ╠
205 - ═  206 - ╬  207 - ╧  208 - ╨  209 - ╤  210 - ╥
211 - ╙  212 - ╘  213 - ╒  214 - ╓  215 - ╫  216 - ╪
217 - ┘  218 - ┌  219 - █  220 - ▄  221 - ▌  222 - ▐
223 - ▀  224 - α  225 - ß  226 - Γ  227 - π  228 - Σ
229 - σ  230 - µ  231 - τ  232 - Φ  233 - Θ  234 - Ω
235 - δ  236 - ∞  237 - φ  238 - ε  239 - ∩  240 - ≡
241 - ±  242 - ≥  243 - ≤  244 - ⌠  245 - ⌡  246 - ÷
247 - ≈  248 - °  249 - ∙  250 - ·  251 - √  252 - ⁿ
253 - ²  254 - ■Press any key to continue

翻译自: https://www.includehelp.com/c-programs/c-program-print-ascii-table.aspx

ascii非打印控制字符表

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/544179.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

THEOS的第一个TWeak的成功创建

THEOS的第一个TWeak的成功创建THEOS的第一个TWeak的成功创建参考资料:成功的创建一个TWeak的弹出步骤1:安装Xcode和Xcode command line步骤2:安装theosa:下载theos前,设置保存的路径:环境变量b:下载theosc:下载头文件d:下载ldid签名工具e:配置MoblieSubstrate环境f:安装dpkg步骤…

查询中,有没有可能多个索引一起用呢?

其实我们之前所讲的回表&#xff0c;就是两个索引树同时使用&#xff0c;先在二级索引树中搜索到对应的主键值&#xff0c;然后在再去主键索引树中查询完整的记录。但是我今天的问题是&#xff0c;两个不同的二级索引树&#xff0c;会同时生效吗&#xff1f;理论上来说&#xf…

ruby array_Ruby中带有示例的Array.sample()方法

ruby arrayArray.sample()方法 (Array.sample() Method) In this article, we will study about Array.sample() method. You all must be thinking the method must be doing something which is quite different from all those methods which we have studied. It is not as…

ThreadLocal夺命11连问

前言前一段时间&#xff0c;有同事使用ThreadLocal踩坑了&#xff0c;正好引起了我的兴趣。所以近期&#xff0c;我抽空把ThreadLocal的源码再研究了一下&#xff0c;越看越有意思&#xff0c;发现里面的东西还真不少。我把精华浓缩了一下&#xff0c;汇集成了下面11个问题&…

关于静态库、动态库的区别汇总

real framework中不可以使用类别 或 不可以不包含类文件real framework 中直接调用NSClassFromString函数会返回null 需要强制加载指定类 或 直接通过类名引用linux中静态库和动态库的区别一、不同库从本质上来说是一种可执行代码的二进制格式&#xff0c;可以被载入内存中执行…

PHP array_pad()函数与示例

PHP array_pad()函数 (PHP array_pad() function) array_pad() function is used to pad an array to given size with a specified value and returns a new array with a specified value. array_pad()函数用于将数组填充到具有指定值的给定大小&#xff0c;并返回具有指定值…

Spring Boot 优雅配置多数据源

大约在19年的这个时候&#xff0c;老同事公司在做医疗系统&#xff0c;需要和HIS系统对接一些信息&#xff0c;比如患者、医护、医嘱、科室等信息。但是起初并不知道如何与HIS无缝对接&#xff0c;于是向我取经。最终经过讨论采用了视图对接的方式&#xff0c;大致就是HIS系统提…

(转)新ITC提交APP常见问题与解决方法(Icon Alpha,Build version,AppIcon120x120)(2014-11-17)...

1&#xff09;ICON无法上传&#xff0c;提示图片透明&#xff08;有Alpha通道&#xff09;苹果现在不接受png里的Alpha了&#xff0c;提交的图标带有Alpha通道就提示&#xff1a;简单处理&#xff1a;用自带的预览打开&#xff0c;导出时不勾选Alpha&#xff0c;仍保存为png格式…

python 向量取整数_随机整数向量| 使用Python的线性代数

python 向量取整数Prerequisite: 先决条件&#xff1a; Defining a Vector using list 使用列表定义向量 Defining Vector using Numpy 使用Numpy定义向量 Random Integer Vector is a type of vector having a random integer value at each entry. Such types of vectors ha…

Spring 夺命 35 问!

有人说&#xff0c;“Java程序员都是Spring程序员”&#xff0c;可以看出Spring在Java世界里举足轻重的作用。基础1.Spring是什么&#xff1f;特性&#xff1f;有哪些模块&#xff1f;Spring Logo一句话概括&#xff1a;Spring 是一个轻量级、非入侵式的控制反转 (IoC) 和面向切…

Android百度地图开发03之地图控制 + 定位

前两篇关于百度地图的blog写的是&#xff0c;一些基本图层的展示 和 覆盖物的添加地理编码和反地理编码。 接下来&#xff0c;这篇blog主要说一些关于地图控制方面的内容和定位功能。 百度地图提供的关于地图的操作主要有&#xff1a;单击、双击、长按、缩放、旋转、俯视等。 地…

软件工程需要学什么_为什么我们需要软件工程?

软件工程需要学什么Software engineering is the application of the set of pre-defined procedures while developing any project. But why do we need Software engineering? What factors made us implement these predefined set of procedures and protocols while dev…

IDEA 版 Postman 面世了,功能真心强大!

IDEA是最常用的开发工具&#xff0c;很多程序员都想把它打造成一站式开发平台&#xff0c;于是安装了各种各样的插件。最近发现了一款IDEA插件RestfulFastRequest&#xff0c;细节做的真心不错&#xff0c;说它是IDEA版的Postman也不为过&#xff0c;推荐给大家&#xff01;Res…

DNS子域授权

转载于:https://blog.51cto.com/changeflyhigh/1697257

mongo数据库插入数据_深入研究Mongo数据库

mongo数据库插入数据More popularly known as "mongoDB". It is a no-sql based database. 俗称“ mongoDB” 。 这是一个基于无SQL的数据库。 BASIC STRUCTURE OF MONGO DB MONGO DB的基本结构 A COLLECTION IN MONGODB having 3 DOCUMENTS MONGODB中有3个文档的集…

java方法重载和重载方法_我们可以在Java中重载main()方法吗?

java方法重载和重载方法The question is that "can we overload main() method in Java?" 问题是“我们可以在Java中重载main()方法吗&#xff1f;” Yes, We can overload the main() method in Java. 是的&#xff0c;我们可以重载Java中的main()方法 。 JVM cal…

五分钟,手撸一个Spring容器!

Spring是我们最常用的开源框架&#xff0c;经过多年发展&#xff0c;Spring已经发展成枝繁叶茂的大树&#xff0c;让我们难以窥其全貌。这节&#xff0c;我们回归Spring的本质&#xff0c;五分钟手撸一个Spring容器&#xff0c;揭开Spring神秘的面纱&#xff01;从什么是IOC开始…

一步一步搭建客服系统 (7) 多人共享的电子白板、画板

多人共享、同时操作的电子白板&#xff0c;让不同的参入者以不同的颜色来画画&#xff1b;可以保存当前room的内容&#xff0c;以让后来者可以直接加载所有内容。 在github上找到一个用html5 canvas实现的一个电子白板的例子&#xff1a; https://github.com/kblcuk/canvas-whi…

Spring Cloud OpenFeign 的 5 个优化小技巧!

作者 | 磊哥来源 | Java中文社群&#xff08;ID&#xff1a;javacn666&#xff09;转载请联系授权&#xff08;微信ID&#xff1a;GG_Stone&#xff09;OpenFeign 是 Spring 官方推出的一种声明式服务调用和负载均衡组件。它的出现就是为了替代已经进入停更维护状态的 Feign&am…

java的equals方法_Java Vector equals()方法与示例

java的equals方法向量类的equals()方法 (Vector Class equals() method) equals() method is available in java.util package. equals()方法在java.util包中可用。 equals() method is used to check whether this Vector is the same or equals to the given object (ob) or …