|
|
− | <nowiki>
| + | [[File:Bakercoat lowcontrast.png|right]] |
− | <SCRIPT LANGUAGE="JavaScript">
| + | |
| | | |
| + | So here we have the "header file" called MyClass.h - which contains the declaration of MyClass - and all of the really simple functions (maybe everything under 5 or so lines long is a good rule of thumb). Every ".cpp" file that implements or uses MyClass has to #include this header file. For the very simplest classes, you may not need a ".cpp" file - in which case you can just leave it out. |
| | | |