[英]how to convert ascii and extended ascii to int in c
有沒有辦法在C中擁有ASCII /擴展ASCII字符的十進制值(以int為單位)(特別是擴展的)
ASCII和擴展ASCII表: http : //www.theasciicode.com.ar/
我的一些代碼問題的示例:
int a = (int) 'a';
int b = (int) '│';
printf("%i\n", a);
printf("%i\n", b);
輸出為:
97
14849154
在ASCII表中,“│”通常為179。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.