can you anyone explain me how to convert buffer data to an file ?
can you anyone explain me how to convert buffer data to an file ?
Sure:
1) Open a file in binary mode.
2) Write the buffer to file.
3) Close the file.
4) Lather, rinse, repeat.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
This tutorial is useful, if this is not enough information for you, you can search in google-google is our friend.