What compiler are you using? If you are completely new to the language, I suggest you use IDEs that provide simple interfaces for compiling programs, such as DevCpp and Code::Blocks.
Btw, you might need to run your programs using cmd or they will close immediately after producing the output.
Alternatively, try adding an input statement after your program has output everything you need. The input statement can pause the program so that it won't close immediately upon finishing the output.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum