Iostream header vs iostream class?

The relation between headers and classes isn't necessarily one-to-one; that's just a rule of thumb often taught to novice programmers. In fact, the C++ language standard does not specify any direct relation between classes, implementation files ( translation units ), and headers at all and the standard library often deviates from this rule.

Templates are a special case and you get into trouble if you declare a templated class or function and define it in another file. Since C++ compilers can only compile instantiations of templated elements (like std::vector) and not their generic versions (that would be std::vector), it needs to have the generic version available wherever an instantiation is made. Therefore, the implementation of a generic class is generally in its header file.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions