ASCII – ASCII表
1. 什么是ASCII码?
ACSI (美国标准信息交换码 – ASCII美国信息), 常常发音王牌纤维き, 在现代英语和其他西欧语言使用的字符和基于拉丁字母的字符代码. 它经常被用于显示在计算机和其它信息设备的文本. 它也被用于由控制装置处理文本. (西奥维基).
因此,每个一个字符我们将有一个相应的识别号作为下表.

在您注意一些特殊的代码:
- 65 一
- 97 是
- 48 是多少 0
2. 代码ASCII代码生成
该程序是用C ++通过开发-nguyenvanquan7826.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
void gotoxy(int x, int y) // xay dung ham gotoxy
{
static HANDLE h = NULL;
if(!h)
h = GetStdHandle(STD_OUTPUT_HANDLE);
COORD c = { x, y };
SetConsoleCursorPosition(h,c);
}
void SetColor(WORD color)
{
HANDLE hConsoleOutput;
hConsoleOutput = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO screen_buffer_info;
GetConsoleScreenBufferInfo(hConsoleOutput, &screen_buffer_info);
WORD wAttributes = screen_buffer_info.wAttributes;
color &= 0x000f;
wAttributes &= 0xfff0;
wAttributes |= color;
SetConsoleTextAttribute(hConsoleOutput, wAttributes);
}
int main(){
int a[256] = {0};
a[7] = a[8] = a[9] = a[10] = a[13] = 1;
char *s = "ASCII table upload by nguyenvanquan7826";
gotoxy(40 - strlen(s)/2, 1);
printf("%s\n\n", s);
system("color 1A"); // Dat mau, mau nen la 1, mau chu la A
for (int i=0; i<20; i++){
for (int j=i, k = 0; k<13 && j<256; k++, j += 20){
//SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 5);
SetColor(10);
printf("%4d ", j);
SetColor(15);
if (a[j])
printf(" ");
else
printf("%c", j);
}
printf("\n");
}
SetColor(10);
s = "Program in Dev-C++";
gotoxy(40 - strlen(s)/2, 24);
printf("%s\n\n", s);
}



小号儿童的Cuong副本ASCII禁令TREN已经MA素食鞭. 王拉不加入素食绒哑光漆小芹ak..e残培工作,并在执行故障恢复…?
开发-C单独使用,也可以停止屏幕你啊.
如果不停止, 你在主函数的末尾添加以下语句.
system("pause");非常感谢…
素食之星蜱收集E复制,但没有运行, 它让人们在线路故障: 为 (INT I = 0; 在<20; 我 ){ 发生了什么事是??
您将文件保存为*的.cpp离线
我的e打印编码回来了问号字符的复印机ASCII是明星赛
[IMG]HTTP://i.imgur.com/1NOovFq.jpg[/IMG]
这显然不是他的. !!!!
Ë想写表ASCII的第一个字母:
当你清点<<坦克(3);
它不打印字符先生
你可以用printf(“%Ç”, 3); 打印字符代码 3 NHE.