visual c++ - How to output binary stream from c++ console app? -
Is it possible to return the console app to the binary stream instead of text?
#include "stdafx.h" int _tmain (int argc, _TCHAR * argv []) {return 0; }
How to change this code so that it returns a stream?
You can set up binary mode like this, for example.
Full results; // set is "binary mode" in stdout: result = _setmode (_fileno (stdout), _O_BINARY); If (result == -1) ("binary mode can not be set for stdout"); Else printf ("stdout mode is now binary");
Comments
Post a Comment