Answer the question
In order to leave comments, you need to log in
How to split a binary string of numbers from a file and convert to Hex?
Hello, there is a file, it contains N number of lines. Each line has a maximum of 250 characters. zeros and ones, no spaces.
It is necessary to extract this string, after which, from its end, translate 4 characters into hexadecimal system.
Example:
100 4
00001 01
011101001010110110000001000 3A56C08
int buff4int = stoi(buff2);
cout << hex << buff4int << endl;
Answer the question
In order to leave comments, you need to log in
pluses are not my forte.... you don't want to expand your erudition, in another language (with me it means c #) - yes, this will not be a direct solution... but at least it will be "food for thought";))
ps if it is interesting to tumble into the very essence - welcome to the comments
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question