#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
int main(void)
{
char ch;
printf("请输入一个字符:\n");
ch = getch();
printf("%c -> %d \n\n\n\n\n",ch,ch);
system("echo 若重复使用");
system("pause");
system("cls");
system("ascii.exe"); //自重启程序
return 0;
}
编译环境:Windows8-DevC++ 5.4.1-TDM-GCC 4.71 64Bit