<?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[new(nothrow) undeklariert]]></title><description><![CDATA[<p>Hi,</p>
<p>ich möchte ein dynamisches Feld erzeugen. Aber Dev-C++, sowie Borland C++ Builder 6 sehen dabei <strong>nothrow</strong> als undeklariert an. Muss ich noch irgendwelche Headerdateien inkludieren, um es zum Laufen zu bekommen?</p>
<p>Ich brauche den Parameter <strong>nothrow</strong>, da ich mich mit Exceptions noch nciht auskenne und ich nur mit NULL überprüfen möchte, ob es keinen Speicherfehler gab.</p>
<p>Hier mein Codeschnipsel</p>
<pre><code class="language-cpp">int main()
{
        int* feld;
        feld=new(nothrow) int[1000];       
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/274388/new-nothrow-undeklariert</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 14:10:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/274388.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Sep 2010 10:39:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to new(nothrow) undeklariert on Sat, 25 Sep 2010 10:39:12 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich möchte ein dynamisches Feld erzeugen. Aber Dev-C++, sowie Borland C++ Builder 6 sehen dabei <strong>nothrow</strong> als undeklariert an. Muss ich noch irgendwelche Headerdateien inkludieren, um es zum Laufen zu bekommen?</p>
<p>Ich brauche den Parameter <strong>nothrow</strong>, da ich mich mit Exceptions noch nciht auskenne und ich nur mit NULL überprüfen möchte, ob es keinen Speicherfehler gab.</p>
<p>Hier mein Codeschnipsel</p>
<pre><code class="language-cpp">int main()
{
        int* feld;
        feld=new(nothrow) int[1000];       
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1957240</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1957240</guid><dc:creator><![CDATA[Phisherman]]></dc:creator><pubDate>Sat, 25 Sep 2010 10:39:12 GMT</pubDate></item><item><title><![CDATA[Reply to new(nothrow) undeklariert on Sat, 25 Sep 2010 10:47:30 GMT]]></title><description><![CDATA[<p>#include &lt;new&gt;</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1957243</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1957243</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Sat, 25 Sep 2010 10:47:30 GMT</pubDate></item><item><title><![CDATA[Reply to new(nothrow) undeklariert on Sat, 25 Sep 2010 10:54:27 GMT]]></title><description><![CDATA[<p>Mhm, funkioniert nicht. Immer noch undeklariert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1957246</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1957246</guid><dc:creator><![CDATA[Phisherman]]></dc:creator><pubDate>Sat, 25 Sep 2010 10:54:27 GMT</pubDate></item><item><title><![CDATA[Reply to new(nothrow) undeklariert on Sat, 25 Sep 2010 11:03:59 GMT]]></title><description><![CDATA[<p>nothrow ist im std-Namensraum.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1957252</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1957252</guid><dc:creator><![CDATA[krümelkacker]]></dc:creator><pubDate>Sat, 25 Sep 2010 11:03:59 GMT</pubDate></item><item><title><![CDATA[Reply to new(nothrow) undeklariert on Sat, 25 Sep 2010 18:11:35 GMT]]></title><description><![CDATA[<p>Danke, jetzt funkioniert's!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1957429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1957429</guid><dc:creator><![CDATA[Phisherman]]></dc:creator><pubDate>Sat, 25 Sep 2010 18:11:35 GMT</pubDate></item></channel></rss>