<?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[Array komplett leeren]]></title><description><![CDATA[<p>Hi zusammen,</p>
<p>habe eine ganz banale Frage.<br />
Habe ein</p>
<p>String werteArray[1000];<br />
werteArray[0] = &quot;Test1&quot;;<br />
werteArray[1] = &quot;Test2&quot;;<br />
werteArray[2] = &quot;Test3&quot;;<br />
...</p>
<p>Steht natürlich noch viel mehr drin!!!</p>
<p>Wie kan ich jetzt das Arry komplett leer machen???</p>
<p>in c# wäre es Clear();</p>
<p>Wie geht das in c++?</p>
<p>danke Bench</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/206096/array-komplett-leeren</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 01:26:39 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/206096.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Feb 2008 10:07:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Array komplett leeren on Thu, 21 Feb 2008 10:07:36 GMT]]></title><description><![CDATA[<p>Hi zusammen,</p>
<p>habe eine ganz banale Frage.<br />
Habe ein</p>
<p>String werteArray[1000];<br />
werteArray[0] = &quot;Test1&quot;;<br />
werteArray[1] = &quot;Test2&quot;;<br />
werteArray[2] = &quot;Test3&quot;;<br />
...</p>
<p>Steht natürlich noch viel mehr drin!!!</p>
<p>Wie kan ich jetzt das Arry komplett leer machen???</p>
<p>in c# wäre es Clear();</p>
<p>Wie geht das in c++?</p>
<p>danke Bench</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1460027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460027</guid><dc:creator><![CDATA[Bench_XProjects]]></dc:creator><pubDate>Thu, 21 Feb 2008 10:07:36 GMT</pubDate></item><item><title><![CDATA[Reply to Array komplett leeren on Thu, 21 Feb 2008 10:20:56 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>In C++ geht das so</p>
<pre><code class="language-cpp">std::vector&lt;AnsiString&gt; werteArray(1000);
werteArray[0] = &quot;Test1&quot;;
werteArray[1] = &quot;Test2&quot;;
werteArray[2] = &quot;Test3&quot;; 
//...
werteArray.clear();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1460039</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460039</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 21 Feb 2008 10:20:56 GMT</pubDate></item><item><title><![CDATA[Reply to Array komplett leeren on Thu, 21 Feb 2008 10:21:38 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ok danke!</p>
<p>Bench</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1460040</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460040</guid><dc:creator><![CDATA[Bench_XProjects]]></dc:creator><pubDate>Thu, 21 Feb 2008 10:21:38 GMT</pubDate></item><item><title><![CDATA[Reply to Array komplett leeren on Thu, 21 Feb 2008 10:23:34 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>bei mir kommt</p>
<p>[C++ Fehler] Test1.h(107): E2316 'vector' ist kein Element von 'std'</p>
<p>???</p>
<p>Bench</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1460045</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460045</guid><dc:creator><![CDATA[Bench_XProjects]]></dc:creator><pubDate>Thu, 21 Feb 2008 10:23:34 GMT</pubDate></item><item><title><![CDATA[Reply to Array komplett leeren on Thu, 21 Feb 2008 10:26:14 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;vector&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1460047</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460047</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 21 Feb 2008 10:26:14 GMT</pubDate></item><item><title><![CDATA[Reply to Array komplett leeren on Thu, 21 Feb 2008 10:44:36 GMT]]></title><description><![CDATA[<p>Zers,</p>
<p>es geht!!</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1460066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460066</guid><dc:creator><![CDATA[Bench_XProjects]]></dc:creator><pubDate>Thu, 21 Feb 2008 10:44:36 GMT</pubDate></item><item><title><![CDATA[Reply to Array komplett leeren on Thu, 21 Feb 2008 10:48:24 GMT]]></title><description><![CDATA[<p>Sorry, jetzt kommt<br />
[C++ Fehler] Test1.cpp(326): E2285 Keine Übereinstimmung für 'std::vector&lt;AnsiString,std::allocator&lt;AnsiString&gt; &gt;::operator =(char *)' gefunden</p>
<p>wenn ich werteArray[0] = &quot;Test1&quot;;<br />
versuche!!!</p>
<p>Bench</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1460071</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460071</guid><dc:creator><![CDATA[Bench_XProjects]]></dc:creator><pubDate>Thu, 21 Feb 2008 10:48:24 GMT</pubDate></item><item><title><![CDATA[Reply to Array komplett leeren on Thu, 21 Feb 2008 11:00:46 GMT]]></title><description><![CDATA[<p>werteArray[0] = AnsiString(&quot;Test1&quot;);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1460080</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460080</guid><dc:creator><![CDATA[witte_]]></dc:creator><pubDate>Thu, 21 Feb 2008 11:00:46 GMT</pubDate></item><item><title><![CDATA[Reply to Array komplett leeren on Thu, 21 Feb 2008 11:48:55 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>also kapiers nicht, aber dann kommt</p>
<p>[C++ Fehler] Test1.cpp(324): E2285 Keine Übereinstimmung für 'std::vector&lt;AnsiString,std::allocator&lt;AnsiString&gt; &gt;::operator =(AnsiString)' gefunden</p>
<p>Kapier ich nicht!?</p>
<p>Wie kann es noch sein?<br />
bench</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1460108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460108</guid><dc:creator><![CDATA[Bench_XProjects]]></dc:creator><pubDate>Thu, 21 Feb 2008 11:48:55 GMT</pubDate></item><item><title><![CDATA[Reply to Array komplett leeren on Thu, 21 Feb 2008 12:03:04 GMT]]></title><description><![CDATA[<p>Du hast falsch deklariert. Bei dir steht garantiert sowas</p>
<pre><code class="language-cpp">std::vector&lt;AnsiString&gt; werteArray[1000];
</code></pre>
<p>Das ist aber ein Array mit 1000 Elementen vom Typ std::vector&lt;AnsiString&gt;. Das hier ist richtig</p>
<pre><code class="language-cpp">std::vector&lt;AnsiString&gt; werteArray(1000);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1460124</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1460124</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 21 Feb 2008 12:03:04 GMT</pubDate></item></channel></rss>