hello dear, I love C and C++ language, and I want to learn it but I don't know how to write a program and where to write, my question is where can I write my program to see it's result.
Welcome and I hope you enjoy the C++ Language like me too.
First of all, because you are a beginner, you will not go into any of the fancy stuff right now. Forget the Doom knockoffs - heck, forget anything involving graphics.
Anyway - i'd recommend the Dev C++. It's an IDE using a compiler called MingGW (something close to that). It's beginner friendly.
You can download it here - http://www.bloodshed.net/
After installing the program, you open it and click File, then the button that's next to CTRL + N.
There you enter the code for the program you wish to result for then you press F11 to compile the code into a machine code then you press Run and it will work (assuming there are no errors or bugs).