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

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"

主站蜘蛛池模板: 南川市| 泗水县| 平凉市| 平阴县| 克拉玛依市| 珲春市| 海城市| 苍梧县| 蒙山县| 天门市| 金堂县| 塔城市| 井冈山市| 顺义区| 金坛市| 舒城县| 恩平市| 兴义市| 东海县| 海城市| 仪征市| 霍州市| 互助| 黄浦区| 大埔县| 拉萨市| 天门市| 靖远县| 军事| 丘北县| 即墨市| 家居| 双牌县| 饶河县| 西盟| 永仁县| 天峻县| 三门峡市| 灵川县| 政和县| 云安县|