<?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[String Zeiger Vektor]]></title><description><![CDATA[<p>Warum geht das nicht?</p>
<pre><code class="language-cpp">vector&lt;string&gt; *temp(3,NULL);
</code></pre>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/234710/string-zeiger-vektor</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 08:45:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/234710.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 Feb 2009 13:48:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String Zeiger Vektor on Sat, 21 Feb 2009 13:48:00 GMT]]></title><description><![CDATA[<p>Warum geht das nicht?</p>
<pre><code class="language-cpp">vector&lt;string&gt; *temp(3,NULL);
</code></pre>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1667546</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1667546</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Sat, 21 Feb 2009 13:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to String Zeiger Vektor on Sat, 21 Feb 2009 13:54:33 GMT]]></title><description><![CDATA[<p>du meinst sicher das hier:</p>
<pre><code class="language-cpp">vector&lt; string * &gt; vec(3, NULL);
</code></pre>
<p>was du gemacht hast ist ein zeiger auf einen vector&lt;string&gt;<br />
und du willst diesen zeiger mit dem konstruktor vom vector initialisieren...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1667552</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1667552</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Sat, 21 Feb 2009 13:54:33 GMT</pubDate></item><item><title><![CDATA[Reply to String Zeiger Vektor on Sat, 21 Feb 2009 14:12:31 GMT]]></title><description><![CDATA[<p>Aso, ja okay, jetzt wirds mir klar.<br />
Danke.</p>
<p>MfG<br />
Stromberg</p>
<p>EDIT: Mh, funktioniert aber nur mit 1 Argument, ohne dass &quot;NULL&quot;?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1667556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1667556</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Sat, 21 Feb 2009 14:12:31 GMT</pubDate></item><item><title><![CDATA[Reply to String Zeiger Vektor on Sat, 21 Feb 2009 14:18:12 GMT]]></title><description><![CDATA[<p>Wie geht nicht?</p>
<p><a href="http://www.cplusplus.com/reference/stl/vector/vector.html" rel="nofollow">http://www.cplusplus.com/reference/stl/vector/vector.html</a></p>
<p>Bei mir kompiliert das anstandslos..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1667560</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1667560</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sat, 21 Feb 2009 14:18:12 GMT</pubDate></item><item><title><![CDATA[Reply to String Zeiger Vektor on Sat, 21 Feb 2009 14:46:11 GMT]]></title><description><![CDATA[<p>Folgender Code geht nicht, kp:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;vector&gt;
#include &lt;string&gt;

using namespace std;

int main()
{
    vector&lt; string * &gt; vec(3, NULL);

    return 0;
}
</code></pre>
<p>Fehlermeldung:<br />
<a href="http://de.pastebin.ca/1343700" rel="nofollow">http://de.pastebin.ca/1343700</a></p>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1667580</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1667580</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Sat, 21 Feb 2009 14:46:11 GMT</pubDate></item><item><title><![CDATA[Reply to String Zeiger Vektor on Sat, 21 Feb 2009 16:03:51 GMT]]></title><description><![CDATA[<p>Hehe, das ist der typische Fall, wo ein <code>nullptr</code> Verwendung findet:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-220511.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-220511.html</a></p>
<p>Kommt erst mit dem nächsten Standard oder man hilft sich selber. <code>NULL</code> ist bei dir wohl ein <code>#define NULL 0</code> was ein Integer ist, wodurch ein anderer Konstruktor verwendet wird, nämlich der falsche mit den Iteratoren.</p>
<p>Am einfachsten kannst du es so machen:</p>
<pre><code class="language-cpp">vector&lt; string * &gt; vec(3, static_cast&lt;string*&gt;(0));
</code></pre>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1667620</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1667620</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Sat, 21 Feb 2009 16:03:51 GMT</pubDate></item></channel></rss>