怎么把ASCII码中不能打印的控制字符显示为名称缩写用C语言实现

鞠呀鞠 |浏览637次
收藏|2019/09/03 07:54

满意回答

2019/09/03 08:14

这个你要做对应表的,如#include <stdio.h>char ASCII[][5]={"NUT","SOH","STX","ETX","EOT","ENQ","ACK","BEL","BS","HT","LF","VT","FF","CR","SO","SI","DLE","DCI","DC2","DC3","DC4","NAK","SYN","TB","CAN","EM","SUB","ESC","FS","GS","RS","US"} ;int main(){int i=0;for(i=0; i<sizeof(ASCII)/sizeof(ASCII[0]);i++) printf("%d - %s\n",i,ASCII[i]);return 0;}

whoami1978

其他回答(0)
0人关注该问题
+1

 加载中...