官术网_书友最值得收藏!

23. Binary to string conversion

Write a function that, given a range of 8-bit integers (such as an array or vector), returns a string that contains a hexadecimal representation of the input data. The function should be able to produce both uppercase and lowercase content. Here are some input and output examples:

Input: { 0xBA, 0xAD, 0xF0, 0x0D }, output: "BAADF00D" or "baadf00d"
Input: { 1,2,3,4,5,6 }, output: "010203040506"

主站蜘蛛池模板: 珲春市| 卢龙县| 临泽县| 托里县| 台江县| 安陆市| 密云县| 江安县| 永泰县| 军事| 云南省| 鄄城县| 贵阳市| 淮北市| 观塘区| 南丰县| 察哈| 全椒县| 崇信县| 宁河县| 辉县市| 陕西省| 五原县| 临泽县| 秦皇岛市| 罗田县| 青州市| 大英县| 隆昌县| 辉县市| 海宁市| 安庆市| 高邑县| 浪卡子县| 白沙| 渭南市| 万宁市| 宝兴县| 尼勒克县| 崇文区| 措美县|