문제

I am using formatted std::string to store my intermediate buffers before dumping them in a file.

Now I want to write my intermediate data in binary buffers as I want to dump my file in binary format. Which type do I need to use for these binary buffers.

Take note that these intermediate records are formatted data in a string. By formatted data, I mean string made by call of sprintf with %s,%d etc.

올바른 솔루션이 없습니다

다른 팁

Here is to convert to to binary.

Conversion of Char to Binary in C

and to convert back to char:

Convert binary format string to int, in C

:D

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top