c++ - Why does void setOutputFormat(ostream out, int decimal_places) cause an error? -


If I call it by context by altering the zero-sataptive format (Ostream & Out, Int deSial_Places) Works. I do not understand why? What is the difference between a structure and class, apart from the members of the structure, and class members by default are private?

You are right that there is no difference between class and straight except for the default Private vs. Private.

The problem here is that Ostream does not have a copy constructor, so you can not pass it by value.


Comments