c++ - 如何将普通扫描码翻译成 ascii 字符
问题描述
我需要将这些扫描代码转换为 ascii 章程。
在本站: 1.4 普通扫描码
例如 :
char scan_codes[]={ 0x1e,0x1e,0x1f,0x1f,0x20,0x20 };
char* result = translate_keys(scan_codes);
//output after translation could be result = "aassdd"
是否有任何数学方程可以转换它或如何在 C++ 中构建 translate_keys() 函数?
解决方案
推荐阅读
- mysql - 无法使用 PHPMyAdmin 导出 MySQL 数据库
- r - R:合并具有相同id的行,并展开列
- android - Service Worker 'install' 在 iOS 上不工作,但在 Android 上工作
- mysql - 在 MySql 中,如何在 UTC 时间凌晨 5 点获取日期小于或等于今天的所有行?
- powershell - 需要帮助将 Powershell IE 自动登录脚本转换为具有相同功能的 firefox
- java - 休息模板抛出 HttpClientErrorException - 404
- python - 某些形式是否禁止使用硒?
- php - 在 Mac OSX Mojave 10.14 上安装 pear 的问题
- laravel - 三向数据透视表获取用户所属的所有团队以及每个团队的角色
- bash - 如何在我的 bash 提示符中正确使用两个字符宽的表情符号?