-
从键盘读入一个4进制数,CRT显示等效双…
从键盘读入一个四位的十六进制数,CRT显示等值的二进制数.
由于每个十六进制数位对应4个二进制,所以每读入一个十六进制位后,即可将其对应的4个二进制位依次输出。由于数字‘0’~ ‘9’的ASCⅡ码为30H~39H,字母‘a’~‘f’与 ‘A’~‘F’的ASCⅡ码为61H~66H 与41H~46H ,因此,如果输入的字母为数字‘0’~‘9’,则其低4位即为对应的二进制位;如果输入的字符为字母‘a’~‘f’或‘A’~‘F’,则需要减7,然后通过移位将低4位依次输出。
-Reading from the keyboard into a 4 hexadecimal number, CRT display equivalent binary number. Since each hexadecimal number of the corresponding 4-bit binary, so every time into a hexadecimal places, can be its corresponding 4-bit binary sequence output. Due to the number
- 2022-12-17 12:35:03下载
- 积分:1
-
16F877单片机与PC机通讯的源程序,老外的,别错过.
16F877单片机与PC机通讯的源程序,老外的,别错过.-16F877 microcontroller and PC communication source, the generals, and others.
- 2023-04-07 23:45:04下载
- 积分:1
-
The RS
The RS-232 to RS-485 converter with pic16f628 microcontroller
- 2023-05-30 08:30:03下载
- 积分:1
-
用汇编语言实现2进制向十进制的转换,过程用类似模块化的标签,通过跳转实现,代码块清晰易读...
用汇编语言实现2进制向十进制的转换,过程用类似模块化的标签,通过跳转实现,代码块清晰易读-Using assembly language to achieve 2-band conversion to the metric system, the process of labeling similar to the modular, through Jump realized legible block of code
- 2022-01-26 08:10:16下载
- 积分:1
-
cdecl函数调用,了解printf这样的函数调用,对比stdcall…
cdecl函数调用,了解printf这样的函数调用,对比stdcall会更清楚。-cdecl function call, to understand such a function call printf, compared stdcall will be clearer.
- 2023-02-02 21:50:03下载
- 积分:1
-
用汇编写的 CRC的算法代码,里面包含16位和32位的,大家可以嵌入到高级语言中使用,有助于提高程序的效率!内有嵌入例子。...
用汇编写的 CRC的算法代码,里面包含16位和32位的,大家可以嵌入到高级语言中使用,有助于提高程序的效率!内有嵌入例子。-With the compilation of the CRC algorithm to write the code, which contains 16-bit and 32-bit, and they can be embedded into high-level language used to enhance the efficiency of the procedure! Example, there are embedded.
- 2022-05-18 10:22:55下载
- 积分:1
-
it can help you use C++ program we
it can help you use C++ program we
- 2022-01-26 05:08:40下载
- 积分:1
-
设计要求:
出于不同目的的旅客对交通工具有不同的要求.例如,因公出差的旅客希望在旅途中的时间尽可能短,出门旅游的游客则期望旅费尽可能省,而老年旅客则要求中...
设计要求:
出于不同目的的旅客对交通工具有不同的要求.例如,因公出差的旅客希望在旅途中的时间尽可能短,出门旅游的游客则期望旅费尽可能省,而老年旅客则要求中转次数最少.编制一个全国城市间的交通咨询程序,为旅客提供两种或三种最优决策的交通咨询.
//请保留此信息,谢谢
1.需求分析:
(1)提供对城市信息进行编辑(如添加或删除)的功能.
(2)城市之间有两种交通工具:火车和飞机.提供对列车时刻表和飞机航班进行编辑(增设或删除)的功能.
(3)提供两种最优决策:最快到达或最省钱到达.全程只考虑一种交通工具.
-design requirements : For different purposes to transport passengers have different requirements. For example, on official business travelers in the journey time as short as possible away tourists expect possible travel provinces, and elderly passengers asked the least number of transit. establishment of a national inter-city traffic advisory proceedings, for the visitors two or three best decision of the Transport Advisory.// Please keep this information, I would like to thank one. demand analysis : (1) to provide information on the city for editing (such as add or delete) function. (2) Town between the two modes : Train and aircraft. Schedules for the train and flights for editing (created or deleted) function. (3)
- 2022-03-23 02:35:30下载
- 积分:1
-
s3c44b0初始化的引导程序,包括系统初始化,定义堆栈,进入主程序。...
s3c44b0初始化的引导程序,包括系统初始化,定义堆栈,进入主程序。-S3C44B0 guidance initialization procedures, including system initialization, the definition of the stack into the main program.
- 2022-03-13 10:51:01下载
- 积分:1
-
用51单片机实现音乐播放的源代码,能够播放“祝你平安”和“八月桂花香”...
用51单片机实现音乐播放的源代码,能够播放“祝你平安”和“八月桂花香”-play music by C51
- 2022-04-10 17:10:29下载
- 积分:1