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

  • The Modern C++ Challenge
  • Marius Bancila
  • 56字
  • 2021-06-25 22:01:28

24. String to binary conversion

Write a function that, given a string containing hexadecimal digits as the input argument, returns a vector of 8-bit integers that represent the numerical deserialization of the string content. The following are examples:

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

主站蜘蛛池模板: 会理县| 元氏县| 永修县| 城步| 石林| 城口县| 湘潭县| 安义县| 左权县| 伽师县| 黄冈市| 达拉特旗| 肇东市| 灌阳县| 梨树县| 伊吾县| 文登市| 来安县| 宁明县| 安庆市| 西充县| 东丽区| 安溪县| 龙门县| 彰化市| 朝阳市| 霞浦县| 陕西省| 许昌市| 大理市| 长治市| 三门县| 吉安市| 龙州县| 政和县| 沭阳县| 扎鲁特旗| 永修县| 司法| 呈贡县| 宁乡县|