How can I convert a double into a const char, and then convert it back into a double?
I\'m wanting to convert the double to a string, to write it to a file via fput
Use this funcition :
const char* ConvertDoubleToString(double value){ std::stringstream ss ; ss << value; const char* str = ss.str().c_str(); return str; }