Why when we pass output/input streams to functions, we have to pass by reference?
Thanks.
This is a discussion on input/output streams within the C++ Programming forums, part of the General Programming Boards category; Why when we pass output/input streams to functions, we have to pass by reference? Thanks....
Why when we pass output/input streams to functions, we have to pass by reference?
Thanks.
because they cannot be copied maybe?
If I have eight hours for cutting wood, I spend six sharpening my axe.
Because they cannot be copied.
"If you tell the truth, you don't have to remember anything"
-Mark Twain