Here's a simple way to compile and run C and C++ programs in Atom Editor
1. To do that you first need to install Atom Editor, download link https://atom.io/
2. Go to Files -> Settings -> Install
search for gpp-compiler and install
(gpp compiler package link: https://atom.io/packages/gpp-compiler)
3. Now go to the editor and write your program and save.
4. To compile the program press F5 or right click the file in tree view and click Compile and Run
5. The terminal/command prompt will invoke and start to show you output if your code is compiled successfully.
Note: To use the compiler from the Atom Editor you also need to install MinGW
Watch this video for install MinGW on Windows: https://www.youtube.com/watch?v=DHekr3EtDOA

