ok so I'm pretty new to c++... and I was wondering if there are any tutorials showing how to use modules/ create them
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
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.