2014年9月19日 星期五

讀取中文字編碼


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#include <stdio.h>
#include <stdlib.h>

int main()
{
    char a,b;

    scanf("%c%c",&a,&b);
    printf("%#x\n%#x",a,b);

    system("pause");
    return 0;
}

沒有留言:

張貼留言