<?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[Variabelname aus String verwenden]]></title><description><![CDATA[<p>in einem string von mir steht ein variabelname. diese variabel existiert auch schon. nun möchte ich in meinem programm die variabel befüllen, deren name in dem strings steht. wie geht das?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/181130/variabelname-aus-string-verwenden</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 04:43:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/181130.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 May 2007 08:51:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Variabelname aus String verwenden on Thu, 10 May 2007 08:51:11 GMT]]></title><description><![CDATA[<p>in einem string von mir steht ein variabelname. diese variabel existiert auch schon. nun möchte ich in meinem programm die variabel befüllen, deren name in dem strings steht. wie geht das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1282187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1282187</guid><dc:creator><![CDATA[PaRu]]></dc:creator><pubDate>Thu, 10 May 2007 08:51:11 GMT</pubDate></item><item><title><![CDATA[Reply to Variabelname aus String verwenden on Thu, 10 May 2007 09:05:31 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Nein. C++ kennt zur Laufzeit keine Variablennamen mehr, nur noch Speicheradressen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1282201</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1282201</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 10 May 2007 09:05:31 GMT</pubDate></item><item><title><![CDATA[Reply to Variabelname aus String verwenden on Thu, 10 May 2007 10:08:02 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Sowas ähnliches könnte man mittels einer map&lt;string, ..&gt; allerdings implementieren wenn man viele Variablen gleichen Typs über den namen zuweisen will.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1282247</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1282247</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 10 May 2007 10:08:02 GMT</pubDate></item><item><title><![CDATA[Reply to Variabelname aus String verwenden on Thu, 10 May 2007 21:50:23 GMT]]></title><description><![CDATA[<p>PaRu schrieb:</p>
<blockquote>
<p>in einem string von mir steht ein variabelname. diese variabel existiert auch schon. nun möchte ich in meinem programm die variabel befüllen, deren name in dem strings steht. wie geht das?</p>
</blockquote>
<p>naja ich glaub ich bin zu blöd ich verstehe es so:</p>
<p>string a(&quot;blublub&quot;);<br />
string x;<br />
int y;<br />
float z;</p>
<p>if(a == &quot;wert&quot;)<br />
y = 5;<br />
...</p>
<p>das hat doch nichts mit laufzeit zu tun sondern einfach eine zuweisung...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1282698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1282698</guid><dc:creator><![CDATA[Stelfer]]></dc:creator><pubDate>Thu, 10 May 2007 21:50:23 GMT</pubDate></item><item><title><![CDATA[Reply to Variabelname aus String verwenden on Fri, 11 May 2007 03:46:50 GMT]]></title><description><![CDATA[<p>Ich verstehe es anders:</p>
<p>int v;<br />
string a=&quot;v&quot;;<br />
a=5; //hier will er der int Variablen v, deren &quot;Name&quot; ja in a steht, 5 zuweisen</p>
<p>Akari sagte ja schon, dass es nicht geht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1282738</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1282738</guid><dc:creator><![CDATA[Shinja]]></dc:creator><pubDate>Fri, 11 May 2007 03:46:50 GMT</pubDate></item><item><title><![CDATA[Reply to Variabelname aus String verwenden on Fri, 11 May 2007 04:48:07 GMT]]></title><description><![CDATA[<p>Sacht mal...es gibt doch sicher Reflection Libraries für C++ die sowas können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1282743</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1282743</guid><dc:creator><![CDATA[Nur mal so...]]></dc:creator><pubDate>Fri, 11 May 2007 04:48:07 GMT</pubDate></item></channel></rss>