标签:io ar sp for on 文件 bs 代码 as
C++代码:
#include <stdio.h> int main() { puts("GB2312编码"); const int charsPerLine = 15; char text[3] = ""; for (int rowCode = 1; rowCode <= 94; ++rowCode) { printf("\n\n\n第%d区:\n", rowCode); for (int colCode = 1; colCode <= 94; ++colCode) { text[0] = rowCode + 0xA0; text[1] = colCode + 0xA0; printf("[%s] ", text); if (colCode % charsPerLine == 0) { puts(""); } } } return 0; }
重定向输出到文件,就更方便查阅了。
标签:io ar sp for on 文件 bs 代码 as
原文地址:http://my.oschina.net/blink/blog/354749