For example I have string that contains hexadecimal numbers:
std::string hexStr = "E110A3" and I want to convert it to char.
So that char hex[3] = {0xE1, 0x10, 0xA3}
How I can accomplish this?
I tried to search but I didn't find answer to this.
Mantu89
0
Newbie Poster
Recommended Answers
Jump to PostFor example I have string that contains hexadecimal numbers:
std::string hexStr = "E110A3" and I want to convert it to char.
So that char hex[3] = {0xE1, 0x10, 0xA3}
How I can accomplish this?
I tried to search but I didn't find answer to this.You need to first extract …
All 4 Replies
VernonDozier
2,218
Posting Expert
Featured Poster
Mantu89
0
Newbie Poster
VernonDozier
2,218
Posting Expert
Featured Poster
Mantu89
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.