<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem with C++]]></title><description><![CDATA[<p dir="auto">I downloaded the Nppexec plugin (the one with the gpup.exe) and had it work.<br />
Then there was some problem with the compiler, I had to change mingw folder name to mingwold. That made the code work. But as soon as I run the program, it opens for a second and then closes. If I use it to input two numbers and show their sum, it exits as soon as it shows the sum. How can I make it not shut itself?<br />
Here’s the code I wrote in nppexec:</p>
<p dir="auto">npp_save<br />
cd “$(CURRENT_DIRECTORY)”<br />
g++ “$(FILE_NAME)” -o $(NAME_PART) -march=native -O3<br />
NPP_RUN $(NAME_PART)</p>
]]></description><link>https://community.notepad-plus-plus.org/topic/15867/problem-with-c</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Sep 2026 07:08:54 GMT</lastBuildDate><atom:link href="https://community.notepad-plus-plus.org/topic/15867.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 03 Jun 2018 08:21:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with C++ on Sun, 03 Jun 2018 18:38:26 GMT]]></title><description><![CDATA[<ol>
<li>Typing</li>
</ol>
<pre><code>help npp_save
</code></pre>
<p dir="auto">in the NppExec Console says:</p>
<pre><code>COMMAND:  npp_save
USAGE:
  npp_save
  npp_save &lt;file&gt;
DESCRIPTION:
  1. Saves current file ("npp_save" without parameters)
  2. Saves specified file if it's opened in Notepad++
     (supports a partial file path/name)
EXAMPLES:
  npp_save         // saves current file
  npp_save $(#2)   // saves 2nd file opened in Notepad++
  npp_save txt     // saves a first file which contains "txt" in its name
SEE ALSO:
  npp_saveas, npp_saveall, npp_open
</code></pre>
<ol start="2">
<li>Typing</li>
</ol>
<pre><code>help cd
</code></pre>
<p dir="auto">in the NppExec Console says:</p>
<pre><code>COMMAND:  cd
USAGE:
  cd
  cd &lt;relative_path&gt;
  cd &lt;absolute_path&gt;
DESCRIPTION:
  1. Changes current directory ("cd" with parameters)
  2. Shows current directory path ("cd" without parameters)
EXAMPLES:
  cd       // shows current directory path
  cd ..    // go to up-directory
  cd \     // go to root-directory
  cd $(NPP_DIRECTORY)    // go to notepad++'s directory
  cd e:\temp            // change drive and directory
SEE ALSO:
  dir
</code></pre>
<ol start="3">
<li>Typing</li>
</ol>
<pre><code>help npp_run
</code></pre>
<p dir="auto">in the NppExec Console says:</p>
<pre><code>COMMAND:  npp_run
USAGE:
  npp_run &lt;command&gt;
  npp_run &lt;file&gt;
DESCRIPTION:
  1. The same as Notepad++'s Run command - runs an external process
  2. Opens specified file in its associated program (requires NppExec v0.2 RC3.1 or higher)
EXAMPLES:
  npp_run calc.exe    (*)
  * if you type just "calc.exe" without "npp_run", then NppExec runs
    "calc.exe" as a child process and waits until it returns (i.e. until
    you close the calc's window)
  npp_run "index.html" // opens "index.html" in your default web-browser
  npp_run "C:\Program Files\Mozilla Firefox\firefox.exe" "index.html" // in Firefox
  npp_run "$(FULL_CURRENT_PATH)" // opening using the associated program
REMARKS:
  In terms of an application (a program), NPP_RUN allows to run it in its own
  window without waiting for its execution:
    npp_run application.exe
    npp_run application.exe &lt;arguments&gt;
  If, however, there is a need to wait until the application has been executed,
  while still running it in its own window, it can be achieved without NPP_RUN:
    cmd /c start /wait application.exe
    cmd /c start /wait application.exe &lt;arguments&gt;
  In this last case, NppExec waits for cmd to be executed, while cmd itself
  starts the application in its own separate window and waits until it has
  been executed.
</code></pre>
<ol start="4">
<li>Type just</li>
</ol>
<pre><code>help
</code></pre>
<p dir="auto">in the NppExec Console to see all the available environment variables and commands.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32753</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32753</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Sun, 03 Jun 2018 18:38:26 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with C++ on Sun, 03 Jun 2018 16:31:56 GMT]]></title><description><![CDATA[<p dir="auto">Hey, thanks! I don’t understand either of the scripts. So can you tell me what they’re doing?</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32751</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32751</guid><dc:creator><![CDATA[[[global:former-user]]]]></dc:creator><pubDate>Sun, 03 Jun 2018 16:31:56 GMT</pubDate></item><item><title><![CDATA[Reply to Problem with C++ on Sun, 03 Jun 2018 13:28:59 GMT]]></title><description><![CDATA[<pre><code>NPP_RUN cmd /K "$(NAME_PART)"
</code></pre>
<p dir="auto">, probably.</p>
]]></description><link>https://community.notepad-plus-plus.org/post/32749</link><guid isPermaLink="true">https://community.notepad-plus-plus.org/post/32749</guid><dc:creator><![CDATA[Vitaliy Dovgan]]></dc:creator><pubDate>Sun, 03 Jun 2018 13:28:59 GMT</pubDate></item></channel></rss>