- The Modern C++ Challenge
- Marius Bancila
- 69字
- 2021-06-25 22:01:28
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"
推薦閱讀
- Learn TypeScript 3 by Building Web Applications
- Java程序設計實戰教程
- PyTorch Artificial Intelligence Fundamentals
- JavaScript從入門到精通(第3版)
- EPLAN實戰設計
- QGIS By Example
- Kotlin編程實戰:創建優雅、富于表現力和高性能的JVM與Android應用程序
- Microsoft Dynamics AX 2012 R3 Financial Management
- Learning Hadoop 2
- 算法設計與分析:基于C++編程語言的描述
- Kotlin進階實戰
- SQL Server on Linux
- C#網絡編程高級篇之網頁游戲輔助程序設計
- 深入理解MySQL主從原理
- Flutter for Beginners