2014-02-09から1日間の記事一覧
眠いのでソースだけとりあえず(あとから説明かく) #include <iostream> #include <cstdlib> #define ESC 0x1B void jisToSjis(int *h, int *l){ if(*h & 1){ if(*l < 0x60) *l += 0x1F; else *l += 0x20; } else *l += 0x7E; if(*h < 0x5F) *h = (*h + 0xE1) >> 1; else *h = (*</cstdlib></iostream>…