C语言打印输出128个ASCII码的十进制数及其对应的值
格式比如:97:a
2018-07-12 11:43
程序代码:#include <stdio.h>
main()
{
int d=48;
for(;d<=122;d++)
printf("%d %c \n",d,d);
}
2018-07-12 12:04
2018-07-12 12:20
2018-07-12 12:22
2018-07-12 12:25
2018-07-12 12:26
2018-07-12 12:32
2018-07-12 13:03
程序代码:#include <stdio.h>
#include <ctype.h>
int main( void )
{
for( int ch=0; ch!=128; ++ch )
{
if( isprint(ch) )
printf( "%d %c\n", ch, ch );
else
printf( "%d\n", ch );
}
}
2018-07-12 14:04
2018-07-12 18:25