- 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}
推薦閱讀
- Effective C#:改善C#代碼的50個有效方法(原書第3版)
- 造個小程序:與微信一起干件正經事兒
- Access 2010數據庫基礎與應用項目式教程(第3版)
- 飛槳PaddlePaddle深度學習實戰
- The Professional ScrumMaster’s Handbook
- Java并發編程:核心方法與框架
- JavaScript編程精解(原書第2版)
- 現代CPU性能分析與優化
- Sitecore Cookbook for Developers
- 高性能MVVM框架的設計與實現:San
- Ajax與jQuery程序設計
- C語言程序設計教程
- Scratch 3少兒交互式游戲編程一本通
- Python游戲趣味編程
- Bootstrap for ASP.NET MVC(Second Edition)