search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
37 views
asked mark

1 Answer

0 votes
 
Best answer
This is implementation dependent. Check with your compiler's documentation.
 
For example, suppose you want to do binary I/O using std::cin and std::cout.
 
Unfortunately there is no standard way to cause std::cin, std::cout, and/or std::cerr to be opened
in binary mode. Closing the streams and attempting to reopen them in binary mode might have
unexpected or undesirable results.
 
On systems where it makes a difference, the implementation might provide a way to make them
binary streams, but you would have to check the implementation specifics to find out.
answered even

Related questions

0 votes
1 answer 29 views
1 vote
2 answers 598 views
0 votes
1 answer 61 views
0 votes
1 answer 72 views
72 views
is it bad practice to use 'using namespace std;' in C++?
asked allison Sr Member 1.5k points 11 26 40
0 votes
1 answer 86 views
86 views
When should I use references, and when should I use pointers?
asked albertina Geek 15.7k points 5 9 21
...