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

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"

主站蜘蛛池模板: 汤阴县| 顺昌县| 大足县| 辽阳市| 舒城县| 彭州市| 沐川县| 云阳县| 吴堡县| 平泉县| 蓬莱市| 五河县| 林州市| 滦平县| 水城县| 新宁县| 平罗县| 广饶县| 蓝山县| 图木舒克市| 普宁市| 萍乡市| 定南县| 肥乡县| 永定县| 托克逊县| 色达县| 旬邑县| 高台县| 紫云| 威信县| 开封县| 凤城市| 中宁县| 望都县| 额济纳旗| 延安市| 蒙阴县| 保德县| 开封县| 青岛市|