ok so I'm pretty new to c++... and I was wondering if there are any tutorials showing how to use modules/ create them
Printable View
ok so I'm pretty new to c++... and I was wondering if there are any tutorials showing how to use modules/ create them
Probably depends on what you mean by modules more than anything else.
Generally, a C(++) program consists of:
- one or .c/.cpp source file(s)
- zero or more .h (or .hpp) file(s)
In C++, the general way to split code up is to declare a class in a header file, and implement it's larger functions in a .cpp file.
--
Mats