- 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"
推薦閱讀
- Mastering Entity Framework Core 2.0
- VMware View Security Essentials
- Cocos2D-X權威指南(第2版)
- ASP.NET Core 5.0開發(fā)入門與實戰(zhàn)
- 架構不再難(全5冊)
- 樂學Web編程:網站制作不神秘
- Learning Linux Binary Analysis
- Python金融數(shù)據(jù)分析
- CKA/CKAD應試教程:從Docker到Kubernetes完全攻略
- Monitoring Elasticsearch
- 3D少兒游戲編程(原書第2版)
- 精通Linux(第2版)
- 執(zhí)劍而舞:用代碼創(chuàng)作藝術
- Spring Boot+MVC實戰(zhàn)指南
- Solutions Architect's Handbook