<?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[enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style;]]></title><description><![CDATA[<p>Hallo,</p>
<p>enum{ Rechteck = 0, Gerundetes Rechteck = 1, Ellipse = 2)Style;</p>
<p>Dieser Aufruf funktioniert natürlich nicht.<br />
Wegen dem Leerzeichen zwischen &quot;Gerundetes&quot; und &quot;Rechteck&quot;.<br />
Weiß jemmand wie ich es hinbekomme das es trotz des Leerzeichens geht ?<br />
Unter Visual Basic schreibt man das einfach in eckige klammern<br />
[Gerundetes Rechteck] = 1,</p>
<p>aber das funzt nicht unter VC++.</p>
<p>Vielen Dank für Eure Hilfe!<br />
Mit freundlichen Grüßen<br />
Ronny W <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>
]]></description><link>https://www.c-plusplus.net/forum/topic/52640/enum-rechteck-gerundetes-rechteck-ellipse-style</link><generator>RSS for Node</generator><lastBuildDate>Mon, 01 Jun 2026 01:27:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/52640.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 22 Oct 2003 06:37:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 06:37:16 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>enum{ Rechteck = 0, Gerundetes Rechteck = 1, Ellipse = 2)Style;</p>
<p>Dieser Aufruf funktioniert natürlich nicht.<br />
Wegen dem Leerzeichen zwischen &quot;Gerundetes&quot; und &quot;Rechteck&quot;.<br />
Weiß jemmand wie ich es hinbekomme das es trotz des Leerzeichens geht ?<br />
Unter Visual Basic schreibt man das einfach in eckige klammern<br />
[Gerundetes Rechteck] = 1,</p>
<p>aber das funzt nicht unter VC++.</p>
<p>Vielen Dank für Eure Hilfe!<br />
Mit freundlichen Grüßen<br />
Ronny W <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>
]]></description><link>https://www.c-plusplus.net/forum/post/376947</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/376947</guid><dc:creator><![CDATA[Ronny W]]></dc:creator><pubDate>Wed, 22 Oct 2003 06:37:16 GMT</pubDate></item><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 06:42:34 GMT]]></title><description><![CDATA[<p>Du könntest eine Map benutzen, also<br />
std::map&lt;int,string&gt; Map;<br />
Und dann die elemente mit push_back(make_pair(int,string)) einfügen.</p>
<p>Ich hab zuhause aber auch ein Template was direkt<br />
ein enumerierte Map kapselt.</p>
<p>Devil</p>
]]></description><link>https://www.c-plusplus.net/forum/post/376950</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/376950</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Wed, 22 Oct 2003 06:42:34 GMT</pubDate></item><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 06:46:56 GMT]]></title><description><![CDATA[<p>kannst du mir mal ein Beispiel texten da ich noch nicht mit Maps gearbeitet hab.</p>
<p>Gruß Ronny</p>
]]></description><link>https://www.c-plusplus.net/forum/post/376954</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/376954</guid><dc:creator><![CDATA[Ronny W]]></dc:creator><pubDate>Wed, 22 Oct 2003 06:46:56 GMT</pubDate></item><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 07:09:59 GMT]]></title><description><![CDATA[<p>Kleines Beispiel zu Map und Vector:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;vector&gt;
#include &lt;map&gt;

using namespace std;

int main(int argc, char* argv[])
{
	map&lt;int,string&gt; Map;
	Map.insert(make_pair(0,string(&quot;Rechteck&quot;)));
	Map.insert(make_pair(1,string(&quot;Gerundetes Rechteck&quot;)));
	Map.insert(make_pair(2,string(&quot;Ellipse&quot;)));

	map&lt;int,string&gt;::iterator imap;
	for(imap = Map.begin(); imap != Map.end(); imap++)
		cout &lt;&lt; imap-&gt;second.c_str() &lt;&lt; endl;//wenn du auf den integer zugreifen willst, ist es imap-&gt;first;

	//Map.clear();//map löschen;

	//Alternativ kannst du auch einen vector nehmen, der hat auch einen index
	vector&lt;string&gt; Vector;
	Vector.push_back(&quot;Rechteck&quot;);
	Vector.push_back(&quot;Gerundetes Rechteck&quot;);
	Vector.push_back(&quot;Ellipse&quot;);

	vector&lt;string&gt;::iterator ivector;

	for(ivector = Vector.begin(); ivector != Vector.end(); ivector++)
		cout &lt;&lt; ivector-&gt;c_str() &lt;&lt; endl;

	for(int i =0; i &lt; Vector.size(); i++)
		cout &lt;&lt; Vector[i] &lt;&lt; endl;

	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/376963</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/376963</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Wed, 22 Oct 2003 07:09:59 GMT</pubDate></item><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 07:38:35 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>aber ich brauche das doch als enum! Da ich es als enum für eine Eigenschaft des ActiveX - Steuerelements brauche.</p>
<p>Gibt es da noch eine andere möglichkeit ?</p>
<p>Gruß Ronny W</p>
]]></description><link>https://www.c-plusplus.net/forum/post/376971</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/376971</guid><dc:creator><![CDATA[Ronny W]]></dc:creator><pubDate>Wed, 22 Oct 2003 07:38:35 GMT</pubDate></item><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 07:43:21 GMT]]></title><description><![CDATA[<p>Als enum würde ich das &quot; &quot; einfach gegen ein &quot;_&quot; austauschen.</p>
<p>Devil</p>
]]></description><link>https://www.c-plusplus.net/forum/post/376973</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/376973</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Wed, 22 Oct 2003 07:43:21 GMT</pubDate></item><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 07:46:04 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ja wenn es nicht anders geht. Ist es denn anders möglich ?</p>
<p>Gruß Ronny W</p>
]]></description><link>https://www.c-plusplus.net/forum/post/376974</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/376974</guid><dc:creator><![CDATA[Ronny W]]></dc:creator><pubDate>Wed, 22 Oct 2003 07:46:04 GMT</pubDate></item><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 09:09:05 GMT]]></title><description><![CDATA[<p>nein, außer du schreibst es zusammen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/377014</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/377014</guid><dc:creator><![CDATA[Shlo]]></dc:creator><pubDate>Wed, 22 Oct 2003 09:09:05 GMT</pubDate></item><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 09:14:57 GMT]]></title><description><![CDATA[<p>Aber beim Shape-Steuerelement in VB steht auch da,</p>
<p>shape = 0 - Rechteck, ..., 4 - Gerundetes Rechteck</p>
<p>Wie haben die denn das dann gemacht ?</p>
<p>Gruß Ronny</p>
]]></description><link>https://www.c-plusplus.net/forum/post/377019</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/377019</guid><dc:creator><![CDATA[Ronny W]]></dc:creator><pubDate>Wed, 22 Oct 2003 09:14:57 GMT</pubDate></item><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 09:16:56 GMT]]></title><description><![CDATA[<p>VB != C++ (!!)</p>
<p>Devil</p>
]]></description><link>https://www.c-plusplus.net/forum/post/377021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/377021</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Wed, 22 Oct 2003 09:16:56 GMT</pubDate></item><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 09:23:22 GMT]]></title><description><![CDATA[<p>eine Enum kapselt nur konstante Ganzzahlwerte, mit Text hat es überhaupt nicht zu tun.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/377027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/377027</guid><dc:creator><![CDATA[Shlo]]></dc:creator><pubDate>Wed, 22 Oct 2003 09:23:22 GMT</pubDate></item><item><title><![CDATA[Reply to enum{ Rechteck, Gerundetes Rechteck, Ellipse)Style; on Wed, 22 Oct 2003 09:31:11 GMT]]></title><description><![CDATA[<p>aber wie haben denn das da die Microsoft entwickler gemacht ?<br />
Irgendwie muss es ja möglich sein!</p>
<p>gruß Ronny</p>
]]></description><link>https://www.c-plusplus.net/forum/post/377034</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/377034</guid><dc:creator><![CDATA[Ronny W]]></dc:creator><pubDate>Wed, 22 Oct 2003 09:31:11 GMT</pubDate></item></channel></rss>