<?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[Bezeichner für neue Variable aus einer anderen Variable holen]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich würde gerne eine Variable mit dem Namen den ich in einer anderen Variablen gespeichert habe benennen.</p>
<p>also:<br />
string a = &quot;hallo&quot;;<br />
int (die soll jetzt hallo heißen);</p>
<p>Geht das überhaupt?</p>
<p>Danke schon mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/237402/bezeichner-für-neue-variable-aus-einer-anderen-variable-holen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 10:14:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/237402.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Mar 2009 11:40:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bezeichner für neue Variable aus einer anderen Variable holen on Sat, 28 Mar 2009 11:40:09 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich würde gerne eine Variable mit dem Namen den ich in einer anderen Variablen gespeichert habe benennen.</p>
<p>also:<br />
string a = &quot;hallo&quot;;<br />
int (die soll jetzt hallo heißen);</p>
<p>Geht das überhaupt?</p>
<p>Danke schon mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1687322</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1687322</guid><dc:creator><![CDATA[evee]]></dc:creator><pubDate>Sat, 28 Mar 2009 11:40:09 GMT</pubDate></item><item><title><![CDATA[Reply to Bezeichner für neue Variable aus einer anderen Variable holen on Sat, 28 Mar 2009 11:44:46 GMT]]></title><description><![CDATA[<p>Meines Erachtens unterstüzt C++ keine variablen Variablen, selbst wenn, ist es unsauber. Benutze doch Arrays, pairs, was auch immer...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1687326</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1687326</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Sat, 28 Mar 2009 11:44:46 GMT</pubDate></item><item><title><![CDATA[Reply to Bezeichner für neue Variable aus einer anderen Variable holen on Sat, 28 Mar 2009 11:44:58 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">map&lt;string,int&gt; vars;
vars[&quot;hallo&quot;]=5;
string s;
cout&lt;&lt;vars[&quot;hallo&quot;];
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1687328</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1687328</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sat, 28 Mar 2009 11:44:58 GMT</pubDate></item><item><title><![CDATA[Reply to Bezeichner für neue Variable aus einer anderen Variable holen on Sat, 28 Mar 2009 11:46:47 GMT]]></title><description><![CDATA[<p>Ok</p>
<p>danke. Mit Arrays und sowas kenne ich mich leider noch gar nicht aus. Bin ein totaler Anfänger *blush* aber ich werde mich mal einlesen.</p>
<p>Lieben Gruß<br />
evee</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1687330</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1687330</guid><dc:creator><![CDATA[evee]]></dc:creator><pubDate>Sat, 28 Mar 2009 11:46:47 GMT</pubDate></item><item><title><![CDATA[Reply to Bezeichner für neue Variable aus einer anderen Variable holen on Sat, 28 Mar 2009 14:44:06 GMT]]></title><description><![CDATA[<p>Das ist eher eine Stärke von dynamsichen Skriptsprachen, wie z.B Python. In C++ ist die gängige Alternative die vorgeschlagene Map mit strings.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1687463</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1687463</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sat, 28 Mar 2009 14:44:06 GMT</pubDate></item></channel></rss>