这个你要做对应表的,如#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;}