<?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[Anfängerfrage zu schleifen]]></title><description><![CDATA[<p>hallo, ich möchte gerne einen gewissen befehl hintereinander erst einmal, dann zweimal dann dreimal usw ausführen. wie müss so eine schleife aussehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/233834/anfängerfrage-zu-schleifen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 15:11:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/233834.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Feb 2009 19:11:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anfängerfrage zu schleifen on Mon, 09 Feb 2009 19:11:08 GMT]]></title><description><![CDATA[<p>hallo, ich möchte gerne einen gewissen befehl hintereinander erst einmal, dann zweimal dann dreimal usw ausführen. wie müss so eine schleife aussehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660743</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660743</guid><dc:creator><![CDATA[gazt]]></dc:creator><pubDate>Mon, 09 Feb 2009 19:11:08 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage zu schleifen on Mon, 09 Feb 2009 19:22:55 GMT]]></title><description><![CDATA[<p>So zum Beispiel:</p>
<pre><code class="language-cpp">//main.cpp
#include &lt;iostream&gt;
using std::cout;
using std::endl;

int main()
{
    // Als Beispiel 3 Durchläufe der äußeren for-Schleife
	for(int i = 0; i != 3; ++i)
		for(int j = 0; j != i + 1; ++j)
			cout &lt;&lt; i &lt;&lt; endl;

	return 0;
}
</code></pre>
<p>Ausgabe:</p>
<pre><code>0
1
1
2
2
2
</code></pre>
<p>Es gibt sicherlich auch noch andere Varianten :).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660753</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660753</guid><dc:creator><![CDATA[Mizar]]></dc:creator><pubDate>Mon, 09 Feb 2009 19:22:55 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage zu schleifen on Mon, 09 Feb 2009 19:30:50 GMT]]></title><description><![CDATA[<p>Mizar schrieb:</p>
<blockquote>
<p>Es gibt sicherlich auch noch andere Varianten :).</p>
</blockquote>
<p>Da kann man auch noch was mit Rekursion machen.. <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/1660757</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660757</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Mon, 09 Feb 2009 19:30:50 GMT</pubDate></item></channel></rss>