<?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[CString Variablen]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte in einer Schleife bei jedem Durchgang ein neues CString-Objekt mit neuem Namen erstellen und später darauf Methoden aufrufen. Und zwar in etwa wie folgt (Vorsicht - Pseudocode!):</p>
<pre><code class="language-cpp">for(int z = 0; z &lt; 10; z++) {
  CString string+&quot;z&quot;;
  string+&quot;z&quot;.machwas();
}
</code></pre>
<p>.. funktionier so natürlich nicht...</p>
<p>Kennt jemand eine Möglichkeit pro Schleifendurchgang ein neues CString-Objekt zu erzeugen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162180/cstring-variablen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 22:58:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162180.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Oct 2006 07:10:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CString Variablen on Mon, 16 Oct 2006 07:10:20 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich möchte in einer Schleife bei jedem Durchgang ein neues CString-Objekt mit neuem Namen erstellen und später darauf Methoden aufrufen. Und zwar in etwa wie folgt (Vorsicht - Pseudocode!):</p>
<pre><code class="language-cpp">for(int z = 0; z &lt; 10; z++) {
  CString string+&quot;z&quot;;
  string+&quot;z&quot;.machwas();
}
</code></pre>
<p>.. funktionier so natürlich nicht...</p>
<p>Kennt jemand eine Möglichkeit pro Schleifendurchgang ein neues CString-Objekt zu erzeugen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155409</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155409</guid><dc:creator><![CDATA[joergh]]></dc:creator><pubDate>Mon, 16 Oct 2006 07:10:20 GMT</pubDate></item><item><title><![CDATA[Reply to CString Variablen on Mon, 16 Oct 2006 07:13:56 GMT]]></title><description><![CDATA[<p>Wenn du die +&quot;z&quot; weglässt, kompiliert es sogar und du hast mit jedem Schleifendurchlauf ein &quot;jungfräuliches&quot; CString Objekt.<br />
Allerdings sind die nach der Schleife auch wieder weg, was bei deinem Code oben kein Problem wäre.</p>
<p>Falls es doch eines ist, schau dir CStringArray an. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Sowas mit unterschiedlichen Namen ist mir nicht bekannt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155410</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155410</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Mon, 16 Oct 2006 07:13:56 GMT</pubDate></item><item><title><![CDATA[Reply to CString Variablen on Mon, 16 Oct 2006 07:25:23 GMT]]></title><description><![CDATA[<p>Mir fällt da auch nur ein Array ein! Belibig groß und einfacher zu handhaben.</p>
<p>Eine andere Möglichkeit gibt es nicht, es sei denn du erstellst dir die Variablen vorher, aber da du ja bestimmt ne schleife machst, do du nicht weißt wieviele CString drin sein sollen ist das natürlich quark <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155421</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155421</guid><dc:creator><![CDATA[Uruk-h4j]]></dc:creator><pubDate>Mon, 16 Oct 2006 07:25:23 GMT</pubDate></item><item><title><![CDATA[Reply to CString Variablen on Mon, 16 Oct 2006 10:54:38 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">std::vector&lt;CString&gt;list;
for(int z = 0; z &lt; 10; z++) {
    CString str = _T(&quot;&quot;);
    list.push_back(str);
    list[z].DoWhat();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1155602</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155602</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Mon, 16 Oct 2006 10:54:38 GMT</pubDate></item></channel></rss>