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

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"

主站蜘蛛池模板: 东安县| 麻城市| 绿春县| 元阳县| 察哈| 朔州市| 虎林市| 绥芬河市| 宜春市| 龙游县| 庆云县| 睢宁县| 宁蒗| 布尔津县| 六枝特区| 荔浦县| 蒙阴县| 庐江县| 平陆县| 天峻县| 西平县| 庄河市| 金沙县| 专栏| 安仁县| 容城县| 玉环县| 闽侯县| 云浮市| 车险| 宝清县| 赤壁市| 凯里市| 昌江| 蕲春县| 东方市| 金阳县| 基隆市| 敦化市| 罗田县| 菏泽市|