- 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}
推薦閱讀
- Go Web編程
- C# 7 and .NET Core Cookbook
- Mastering ServiceStack
- AngularJS Web Application Development Blueprints
- Java編程指南:基礎知識、類庫應用及案例設計
- FreeSWITCH 1.6 Cookbook
- Building Minecraft Server Modifications
- Haxe Game Development Essentials
- 從Java到Web程序設計教程
- Mastering Xamarin.Forms(Second Edition)
- ServiceNow:Building Powerful Workflows
- C陷阱與缺陷
- Offer來了:Java面試核心知識點精講(框架篇)
- 前端架構設計
- Managing Windows Servers with Chef