C++ Tutorial 22: Multiple File Projects @WhatsACreel
C++ Tutorial 22: Multiple File Projects  @WhatsACreel
Uploaded April 2014 | Updated November 2026, 2 hours ago
In this tutorial I want to cover the topic of creating class hierarchies and projects with multiple files.

This topic is not often covered in any detail. C++ courses sometimes tell students to split projects and classes but they're not often specific about exactly how to split them. Folks are sometimes left to figure it out for themselves, and it's not as easy as it seems!

It's like telling someone to ride a bike by saying "you just sit on it and pedal, you'll be right!". It's true, but there's something that bike riders know that non-bike riders don't. Likewise, telling someone "split your classes and project up into headers and CPP files, you'll be right!", is not very helpful...

We need to avoid "duplicate definition" errors and yet split our projects and class hierarchies into separate files, whilst including headers multiple times for any classes that needs them. We do this because it makes a project easier to navigate and maintain, but unless you do it right, it's a massive pain to work with. There's more than one right way to do it, but there's also an awful lot of wrong ways to do it! This tutorial is intended to show at least one, simple, clear and correct way of splitting classes and your project into multiple files.

FaceBook:
facebook.com/pages/WhatsaCreel/167732956665435
C++ Tutorial 22: Multiple File ProjectsC++ Tutorial 7: FunctionsModern x64 Assembly 15: Introduction to SIMDC++ Tutorial for Beginners 1: Introduction and First ProgramShunting Yard Algorithm - Intro and Reverse Polish Notationx64 Assembly MultiThreading 3: Mutexes, SpinLocks and Critical SectionsReusing Headers and Source Code in C++Direct2D Tutorial 8: Loading an Imagex64 Assembly Tutorial 61: AVX Negate 128bpp ImageNVIDIA CUDA Tutorial 5: Memory OverviewC++ Tutorial 24: Stringizing and ConcatenationFloating Point Bit Hacks Every Programmer Should Know (Including Fast Inverse Square Root - Quake)
Creel |

C++ Tutorial 22: Multiple File Projects

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER