<?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[break; bei if() in do{}while(true);]]></title><description><![CDATA[<pre><code>do
{
  if(...)
  {
    ...
    break;
  }
} while(true);
</code></pre>
<p>Bricht das break hier nur aus if() aus oder auch aus while?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/323556/break-bei-if-in-do-while-true</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 22:22:23 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/323556.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Feb 2014 14:22:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to break; bei if() in do{}while(true); on Tue, 04 Feb 2014 14:22:54 GMT]]></title><description><![CDATA[<pre><code>do
{
  if(...)
  {
    ...
    break;
  }
} while(true);
</code></pre>
<p>Bricht das break hier nur aus if() aus oder auch aus while?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2381475</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2381475</guid><dc:creator><![CDATA[ffffffffff]]></dc:creator><pubDate>Tue, 04 Feb 2014 14:22:54 GMT</pubDate></item><item><title><![CDATA[Reply to break; bei if() in do{}while(true); on Tue, 04 Feb 2014 14:38:45 GMT]]></title><description><![CDATA[<p>break; gibt es nicht für if, break geht nur für for, while und switch.</p>
<p>Deshalb bezieht sich dein break auf das while.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2381478</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2381478</guid><dc:creator><![CDATA[breakif]]></dc:creator><pubDate>Tue, 04 Feb 2014 14:38:45 GMT</pubDate></item><item><title><![CDATA[Reply to break; bei if() in do{}while(true); on Tue, 04 Feb 2014 15:12:22 GMT]]></title><description><![CDATA[<p>Die Frage ist wohl eher, auf welche Schleife sich das break hier bezieht:</p>
<pre><code>while ( ... )
{
	while ( ... )
	{
		if ( ... )
		{
			break;
		}
	}
}
</code></pre>
<p>(Jeweils innerste Schleife)</p>
<pre><code>while ( ... )
{
	switch ( ... )
	{
	case ( ... ):
		{
			break;
		}
	}
}
</code></pre>
<p>(nur auf das Switch)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2381482</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2381482</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Tue, 04 Feb 2014 15:12:22 GMT</pubDate></item></channel></rss>