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

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"

主站蜘蛛池模板: 临武县| 江孜县| 长寿区| 临江市| 佳木斯市| 乳山市| 衡南县| 辽宁省| 中山市| 宣汉县| 弥勒县| 汨罗市| 任丘市| 加查县| 腾冲县| 平利县| 临安市| 门源| 无为县| 镇江市| 鸡东县| 广宁县| 唐海县| 建始县| 静安区| 铜梁县| 西充县| 余庆县| 徐水县| 南通市| 海门市| 乌鲁木齐县| 武义县| 苏尼特左旗| 清水河县| 南京市| 同德县| 芒康县| 黔江区| 睢宁县| 姚安县|