print('jo'),
im wondering how to 'put these files together' if thats what you call it.
Programs written in compiled languages like C, C++ Pascal, are often written as multiple source files. Each of those source files is compiled in to into machine instructions in "object" files in some binary format. Those object files are then joined together in a process known as "linking" to produce the final executable binary file.
Interpreted languages like Python, Perl, Javascript etc can also be composed of many "script" files. In that case when you run the main script file it may well reference and use some other script file. There will generally be some kind of "import" statement in a script file that causes it to make use of another one.
Generally one does not put multiple complete programs together. They are already finished programs. You might want to extract some files from one and include them in your own project.
You can build programs using multiple files in different languages, using C code from Python for example. That will be harder to varying degrees depending on which languages are involved.
Fear not, when you learn the language of your choice the details of all this will be part of the learning.
Memory in C++ is a leaky abstraction .