So how do I get this "program"? |
The program is a compiler. Several choices are suggested here:
http://www.cplusplus.com/doc/tutorial/introduction/
Those will also include an IDE but you are not obliged to use it. You can also download just a compiler without any IDE - there are a number to choose from.
Or is there any other way to execute a .cpp file from the command prompt without any big effort? |
A .cpp file cannot be executed. It is just text. In order to get a program which can be executed, it needs to go through the stages of compiling, to generate an object file, and linking to produce the executable program.
Perhaps this takes us full circle, back to the opening post of this thread:
My question is how can a user execute them without opening Xcode for instance? |
and the answer is still the same, the user should not need to go anywhere near the cpp files, the user just needs the finished product, the executable program.
Note - even if you use an IDE during development, the end result is an executable program which does not need any IDE in order to run.