Do you understand why though? The "<<" pair is known as an operator, each class has it's own set of instructions that describe what to do when they encounter these or other operators. Those instructions need to be declared before you use them on that or any other class, this is done by including the header file for the class.