- 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"
推薦閱讀
- SoapUI Cookbook
- Hands-On Image Processing with Python
- Spring Boot+Spring Cloud+Vue+Element項目實戰:手把手教你開發權限管理系統
- Mastering Drupal 8 Views
- Learning Probabilistic Graphical Models in R
- Serverless computing in Azure with .NET
- Python圖形化編程(微課版)
- Scratch從入門到精通
- 青少年學Python(第2冊)
- HTML5 Canvas核心技術:圖形、動畫與游戲開發
- ASP.NET jQuery Cookbook(Second Edition)
- Scratch超人漫游記:創意程序設計:STEAM創新教育指南
- 自己動手做智能產品:嵌入式JavaScript實現
- Twitter Bootstrap Web Development How-to
- 跟著迪哥學Python數據分析與機器學習實戰