Creating a program within a program
I know, the title does no justice.
I want to know how to, say I was making a game engine (I want to, but I know I'm not exactly ready yet) say I compiled the program without errors, and now I test the game engine, now how would I be able to export my game made in this engine into an .exe that can be played without worrying about using the engine anymore?
So how would I go about doing this? I fear the only two ways I know are...
(A) Somehow compile the game within the program when it exports the game. (Which I don't believe is possible)
(B) Put every little piece of binary into a file and call it SOMETHING.exe. (WAAAAY to tedious)
(C) Use an external library or engine to export the game. (I don't know tof any engines that does this...)
I know, I'm a newb, but I'm sure a lot of people have had this troublesome question before, I would be grateful if someone can help.