<?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[Switch Schleife]]></title><description><![CDATA[<p>Wie geht eigentlich eine Switch Schleife in C++?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/233085/switch-schleife</link><generator>RSS for Node</generator><lastBuildDate>Fri, 25 Sep 2026 02:30:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/233085.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 31 Jan 2009 13:30:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Switch Schleife on Sat, 31 Jan 2009 13:30:06 GMT]]></title><description><![CDATA[<p>Wie geht eigentlich eine Switch Schleife in C++?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655481</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655481</guid><dc:creator><![CDATA[Microway]]></dc:creator><pubDate>Sat, 31 Jan 2009 13:30:06 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Schleife on Sat, 31 Jan 2009 13:32:45 GMT]]></title><description><![CDATA[<p>genau wie eine if schleife!?!!</p>
<pre><code class="language-cpp">mark1:
   switch(foo)
   {
   case 1:
       cout &lt;&lt; &quot;lol&quot; &lt;&lt; endl;
       break;
   default:
       goto mark1;
   }
</code></pre>
<p>kA ob das mit dem goto so richtig ist, habs noch NIE angewendet, aber so funktioniert ja auch eine if schleife...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655484</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655484</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Sat, 31 Jan 2009 13:32:45 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Schleife on Sat, 31 Jan 2009 13:34:43 GMT]]></title><description><![CDATA[<p>Microway schrieb:</p>
<blockquote>
<p>Wie geht eigentlich eine Switch Schleife in C++?</p>
</blockquote>
<pre><code class="language-cpp">enum FARBEN { ROT, GRUEN, BLAU };

FARBEN farbe = GREUN;

switch( farbe )
{
switch ROT:
       break;
switch GRUEN:
       break;
switch BLAU:
       break;
default:
       //Irgedwas anderes
       break;
};
</code></pre>
<p>geht auch mit int</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655485</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655485</guid><dc:creator><![CDATA[wie wärs mit google]]></dc:creator><pubDate>Sat, 31 Jan 2009 13:34:43 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Schleife on Sat, 31 Jan 2009 13:36:00 GMT]]></title><description><![CDATA[<p>Microway schrieb:</p>
<blockquote>
<p>Wie geht eigentlich eine Switch Schleife in C++?</p>
</blockquote>
<p>Skym0sh0 schrieb:</p>
<blockquote>
<p>genau wie eine if schleife!?!!</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655487</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655487</guid><dc:creator><![CDATA[ihr profis]]></dc:creator><pubDate>Sat, 31 Jan 2009 13:36:00 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Schleife on Sat, 31 Jan 2009 13:37:07 GMT]]></title><description><![CDATA[<p>ihr profis schrieb:</p>
<blockquote>
<p>Microway schrieb:</p>
<blockquote>
<p>Wie geht eigentlich eine Switch Schleife in C++?</p>
</blockquote>
<p>Skym0sh0 schrieb:</p>
<blockquote>
<p>genau wie eine if schleife!?!!</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
</blockquote>
<p>... geht switch nur ned mit jedem datentyp</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655488</guid><dc:creator><![CDATA[ja aber ...]]></dc:creator><pubDate>Sat, 31 Jan 2009 13:37:07 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Schleife on Sat, 31 Jan 2009 13:37:26 GMT]]></title><description><![CDATA[<p>wie wärs mit google schrieb:</p>
<blockquote>
<p>Microway schrieb:</p>
<blockquote>
<p>Wie geht eigentlich eine Switch Schleife in C++?</p>
</blockquote>
<pre><code class="language-cpp">enum FARBEN { ROT, GRUEN, BLAU };

FARBEN farbe = GREUN;

switch( farbe )
{
switch ROT:
       break;
switch GRUEN:
       break;
switch BLAU:
       break;
default:
       //Irgedwas anderes
       break;
};
</code></pre>
<p>geht auch mit int</p>
</blockquote>
<p>Ich hoffe mal, dass dir bewusst ist, dass das völliger Unsinn ist..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655489</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655489</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sat, 31 Jan 2009 13:37:26 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Schleife on Sat, 31 Jan 2009 13:41:03 GMT]]></title><description><![CDATA[<p>drakon schrieb:</p>
<blockquote>
<p>Ich hoffe mal, dass dir bewusst ist, dass das völliger Unsinn ist..</p>
</blockquote>
<p>Die Frage war ja auch nicht nach nem sinnigen Programm sondern wie nen switch geht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655494</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655494</guid><dc:creator><![CDATA[blablablabla]]></dc:creator><pubDate>Sat, 31 Jan 2009 13:41:03 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Schleife on Sat, 31 Jan 2009 13:42:01 GMT]]></title><description><![CDATA[<p>blablablabla schrieb:</p>
<blockquote>
<p>drakon schrieb:</p>
<blockquote>
<p>Ich hoffe mal, dass dir bewusst ist, dass das völliger Unsinn ist..</p>
</blockquote>
<p>Die Frage war ja auch nicht nach nem sinnigen Programm sondern wie nen switch geht</p>
</blockquote>
<p>ah okay da muss case: heißen statt switch: :p :p :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655495</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655495</guid><dc:creator><![CDATA[grrr]]></dc:creator><pubDate>Sat, 31 Jan 2009 13:42:01 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Schleife on Sat, 31 Jan 2009 13:53:28 GMT]]></title><description><![CDATA[<p>blablablabla schrieb:</p>
<blockquote>
<p>drakon schrieb:</p>
<blockquote>
<p>Ich hoffe mal, dass dir bewusst ist, dass das völliger Unsinn ist..</p>
</blockquote>
<p>Die Frage war ja auch nicht nach nem sinnigen Programm sondern wie nen switch geht</p>
</blockquote>
<p>Siehe grrr..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655502</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655502</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sat, 31 Jan 2009 13:53:28 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Schleife on Sat, 31 Jan 2009 13:59:26 GMT]]></title><description><![CDATA[<p>jajajaa <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> weiß ich doch :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1655504</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655504</guid><dc:creator><![CDATA[blablablabla]]></dc:creator><pubDate>Sat, 31 Jan 2009 13:59:26 GMT</pubDate></item><item><title><![CDATA[Reply to Switch Schleife on Sat, 31 Jan 2009 14:54:55 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int i = 10;
	switch(i) { while(i--) {
		default:
			std::cout &lt;&lt; i &lt;&lt; std::endl;
		}
		case 0:
			break;
	}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1655539</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1655539</guid><dc:creator><![CDATA[so gehts]]></dc:creator><pubDate>Sat, 31 Jan 2009 14:54:55 GMT</pubDate></item></channel></rss>