How can one "reopen" std::cin & std::cout in binary mode?, C/C++ Programming

A: It is implementation dependent. Verify with your compiler's documentation. For instance, assume you wish to do binary I/O using std::cin & std::cout.

Unluckily there is no standard method to cause std::cout, std::cin and/or std::cerr to be opened in binary mode. Closing the streams and trying to reopen them in binary mode may have undesirable or unexpected results.

On systems where this makes a difference, the implementation may provide a way to make them binary streams; however you would have to verify the implementation specifics to determine out.

 

Posted Date: 3/21/2013 7:44:37 AM | Location : United States







Related Discussions:- How can one "reopen" std::cin & std::cout in binary mode?, Assignment Help, Ask Question on How can one "reopen" std::cin & std::cout in binary mode?, Get Answer, Expert's Help, How can one "reopen" std::cin & std::cout in binary mode? Discussions

Write discussion on How can one "reopen" std::cin & std::cout in binary mode?
Your posts are moderated
Related Questions
Ask question #Minimum 100 what is friend function is used in c++

Consider text comprised of sentences and sentences comprised of words. Words in a sentence will be space delimited. Given a text and K strings, task is to find out the number valid

In this Lab you will code 8086 assembler equivalents (Virgo) for common C control flow instructions. This will give you an appreciation for how control flow is implemented in assem

6999066263304447777077766622337778 -----> message sent by the first smuggler. my name is robert---------> message decoded by the second smuggler. Where ‘0’ denotes the "space".


Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve betw

Write a C program to compute the value of a sine wave from 0 to 2P with an increment of 0.1 radians.   #include stdio.h #include math.h #define pi 3.1415927 void main() {   c

A: Method of passing arguments to a function that takes parameter of type reference.  for instance: void swap( int & x, int & y ) { int temp = x; x =

padovan string generation till 40

What are  P r im a r y D a t a T y p es? Integer can be defined according to the size of the data and it can be modified further by using keyword unsigned and si