C++ print packaged binary to stdout -


I have to print binary data packed in stdout in C ++. Is there any STL library that meets it Could? I know that Pearl has this functionality but I should be able to do this only in C ++ if C ++ does not have this functionality then someone can guide me on how to do this about programming How to go Thank you

It is generally how you write arbitrary data for stdout in C (this is C ++ Also works for):

  char * binary_data; // Start to indicate your data size_t binary_data_length; Size_t n = fwrite (binary_data, 1, binary_data_length, standout); // check n to make sure all requested bytes were written  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -