输入字符转ASCLL码
#include <stdio.h>
#include <stdlib.h>
int main()
{
    char c;
    printf("输入一个字符: ");
    scanf("%c", &c);  
    printf("%c 的 ASCII 为 %d\n", c, c);
    system("pause");
    return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
    char c;
    printf("输入一个字符: ");
    scanf("%c", &c);  
    printf("%c 的 ASCII 为 %d\n", c, c);
    system("pause");
    return 0;
}
