title: Getting Notepad++ to compile and run C++ programs using minGW
body: <p>I downloaded minGW to compile programs in  C using the gcc command in the console of Notepad++. I downloaded all the packages so that it could compile other languages as well and I double checked that I have g++.exe just like I have gcc.exe to compile c programs. But I don't get how to get to compile and run c++ programs. I saw the other post, "Getting compiler to work in Notepad", and how he copied and pasted:</p>
  
  <pre><code>NPP_SAVE
  CD $(CURRENT_DIRECTORY)
  C:\MinGW\bin\g++.exe -g "$(FILE_NAME)"
  </code></pre>
  
  <p>into the nppExec console. When I do that I get:</p>
  
  <pre><code>NPP_SAVE: C:\Tutorial\helloWorld.cpp
  CD: C:\Tutorial
  Current directory: C:\Tutorial
  C:\MinGW\bin\g++.exe -g "helloWorld.cpp"
  Process started &gt;&gt;&gt;
  &lt;&lt;&lt; Process finished. (Exit code 0)
  ================ READY ================
  </code></pre>
  
  <p>which seems like it works but what do I do next?</p>
  
  <p>here is the program in notepad++</p>
  
  <pre><code>#include &lt;iostream&gt; 
  
  using namespace std; 
  
  int main() {
  
  cout &lt;&lt; "Hello World";
  
  }
  </code></pre>