I'm wondering how to call a source file (or resource or header)...
In case I have "main.cpp" and "minor.cpp", how should I call "minor.cpp" when I'm in "main.cpp"?
You need a header with the declarations of the symbols defined in minor.cpp,
#include it in both source files,
pass the two source files to the compiler/linker
I still don't get how to call the actual file, because the header (*.h) is filled with functions, so if you call a function it gets it from the header, but I'm still not able to use the second source-file where I can output some things and get user-input nor return from the second file back to the main file...
Please answer this question too =)
PS I read the link you sent, it was very useful but unfortunately didn't answer all my questions =(
The .cpp contains the definitions, and the .h(pp) contains the declarations.
If you want to call the functions, just include the corresponding .h file (minor.h) in the source file you want to call it from (main.cpp) and then call it like normal.
Then when compiling you simply need to tell the compiler to link the two .cpp files. If you are using an IDE it will probably link them for you as long as you have them in the correct directories of your project.