search
尋找貓咪~QQ 地點 桃園市桃園區 Taoyuan , Taoyuan

純C 印出 ASCII TABLE(ASCII CODE) – jashliao部落格

純C 印出 ASCII TABLE(ASCII CODE)

 

資料來源:http://stackoverflow.com/questions/27054414/printing-all-the-ascii-values-in-c-c
線上執行:http://codepad.org / http://www.tutorialspoint.com/compile_c_online.php

 

#include

int main()
{
    int i;
    int j=0;
    for(i = 0; i <= 255; i++)
    {
        if(i<=13)
            printf(“[%d]\t[%x]\t%c\n”, i, i,i);
        else
            printf(“[%d]\t[%x]\t%c\t\t”, i, i,i);
        j++;
        if(j==2)
        {
            j=0;
            printf(“\n”);
        }
    }
    return 0;
}

 

之後的查詢結果~ http://codepad.org/WCfsaHnH

 

 

 

 



熱門推薦

本文由 jashliaoeuwordpress 提供 原文連結

寵物協尋 相信 終究能找到回家的路
寫了7763篇文章,獲得2次喜歡
留言回覆
回覆
精彩推薦