Please help me, how to create your own C ++ modules, if not difficult, better by example.

  • Explain in more detail what you mean by the word module ? A file that is compiled separately (from source code in C ++) or a dynamically loaded shared library or something else? - avp

2 answers 2

It seems to me, instead of asking such questions in batches, it is best to take some good book on C++ and start working on it.

Simply the fact that such questions will be answered here will be, rather, only some partial retelling of the essence, maybe even wrong.


About one of the possible approaches to the study of C++ with the corresponding books can be found here.

  • Support - sudo97

I fully support the opinion of Kitty, who wants to eat
but if you really need this, modules in C ++ are called header files and are written very simply (the necessary code is added to a separate file, the file is placed in the same folder as the source code of the program (moreover, it must have English name and extension). h, .hpp), and in the program itself #include "header.h" is written in quotes and exactly with the extension).
about what to write in the file itself, do not be lazy to read the special literature.

  • Do not confuse the person. Header files and modules are completely different things. - skegg
  • Sorry, but I understand the question, I thought that the question is about the modules that are headers in C ++, but the modules are in pascal. - sudo97
  • Which are the modules of the modules-2 (or their derivatives) - alexlz