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

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -