Apparently I don't know how to work the forum, either. I did NOT intend to verify a request for more information as an answer.
When I build a program in C, I put main() in one module and other functions in other modules, and all the various references get fixed by including header files corresponding to the several code files.
I tried to build a cpp program with main() over here and class FIFO over there. The compiler got upset because it had no idea what a FIFO looked like. I was going to build a header file for the FIFO class, but the header ended up looking like the class definition. Besides, I though you weren't supposed to need headers with cpp.
I obviously know less about the basics than I need to, but the online tutorials I've found all use simple examples with the class definition and main() in the same file. That works great if you only have one class, but I expect to end up with several classes, with various combinations of public and private properties.
Help!