<?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[Hilfe bei Anfängerproblemen]]></title><description><![CDATA[<p>Hallo liebe C/C++ Community,</p>
<p>Ich habe erst wenige Stunden Erfahrung mit C++ gesammelt und versuche die Grundlagen mit einem Video Tutorial (&quot;Video2Brain&quot;) zu erlernen.</p>
<p>Ich habe gerade ein Problem mit einer &quot;If else&quot; schleife.<br />
Ich habe mir mehrmals das zugehörige video tutorial angesehen um sicher zu gehen, dass ich keinen Punkt/Zeile übersehen habe, aber meine Schleife funktioniert nicht so wie sie soll, vielleicht kann mir jemand helfen.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;time.h&gt;

using namespace std;

int main(){
	cout &lt;&lt; &quot;Spielerzahl: &quot;;
	int i1;
	cin &gt;&gt; i1;

	if (i1&lt;2){
		&quot;kleiner 2&quot;;
	}
	else cout &lt;&lt; &quot;groeßer gleich 2&quot;;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/276656/hilfe-bei-anfängerproblemen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 26 Aug 2026 07:32:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/276656.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 06 Nov 2010 10:45:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hilfe bei Anfängerproblemen on Sat, 06 Nov 2010 10:45:48 GMT]]></title><description><![CDATA[<p>Hallo liebe C/C++ Community,</p>
<p>Ich habe erst wenige Stunden Erfahrung mit C++ gesammelt und versuche die Grundlagen mit einem Video Tutorial (&quot;Video2Brain&quot;) zu erlernen.</p>
<p>Ich habe gerade ein Problem mit einer &quot;If else&quot; schleife.<br />
Ich habe mir mehrmals das zugehörige video tutorial angesehen um sicher zu gehen, dass ich keinen Punkt/Zeile übersehen habe, aber meine Schleife funktioniert nicht so wie sie soll, vielleicht kann mir jemand helfen.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;time.h&gt;

using namespace std;

int main(){
	cout &lt;&lt; &quot;Spielerzahl: &quot;;
	int i1;
	cin &gt;&gt; i1;

	if (i1&lt;2){
		&quot;kleiner 2&quot;;
	}
	else cout &lt;&lt; &quot;groeßer gleich 2&quot;;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1975901</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1975901</guid><dc:creator><![CDATA[TheRyco]]></dc:creator><pubDate>Sat, 06 Nov 2010 10:45:48 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Anfängerproblemen on Sat, 06 Nov 2010 11:00:23 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-18363" rel="nofollow">Jochen Kalmbach</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/f58" rel="nofollow">C++/CLI mit .NET</a> in das Forum <a href="http://www.c-plusplus.net/forum/f15" rel="nofollow">C++ (auch C++0x)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1975914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1975914</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sat, 06 Nov 2010 11:00:23 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Anfängerproblemen on Sat, 06 Nov 2010 11:13:55 GMT]]></title><description><![CDATA[<p>ThyRyco schrieb:</p>
<blockquote>
<p>&quot;If else&quot; schleife. [...] aber meine Schleife funktioniert nicht so wie sie soll</p>
</blockquote>
<p>Das wird zunächst mal daran liegen, dass du keine Schleife hast, sondern eine Bedingung.<br />
Dein Programm wird einmal durchlaufen und ist dann zu Ende.<br />
Für Schleifen solltest du dich mit &quot;while&quot;, &quot;do while&quot; oder &quot;for&quot; beschäftigen.</p>
<p>Des weiteren wäre natürlich noch informativ, wie dein Programm denn funktionieren soll?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1975920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1975920</guid><dc:creator><![CDATA[BasicMan01]]></dc:creator><pubDate>Sat, 06 Nov 2010 11:13:55 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Anfängerproblemen on Sat, 06 Nov 2010 11:15:56 GMT]]></title><description><![CDATA[<p>Schau dir den if-block an und den else-block.<br />
Da wird dir auffallen das im if-block was fehlt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1975922</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1975922</guid><dc:creator><![CDATA[JaykopX]]></dc:creator><pubDate>Sat, 06 Nov 2010 11:15:56 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Anfängerproblemen on Sat, 06 Nov 2010 11:16:22 GMT]]></title><description><![CDATA[<p>achso, entschludige, ich meinte natürlich bedingung und nicht schleife. Das programm soll erstmal nur zwischen kleiner 2 uznd größer gleich 2 unterscheiden können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1975923</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1975923</guid><dc:creator><![CDATA[TheRyco]]></dc:creator><pubDate>Sat, 06 Nov 2010 11:16:22 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Anfängerproblemen on Sat, 06 Nov 2010 11:17:20 GMT]]></title><description><![CDATA[<p>haha hast recht ^^ mal sehn ob es jetzt geht, wie konnte ich das nur übersehn</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1975924</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1975924</guid><dc:creator><![CDATA[TheRyco]]></dc:creator><pubDate>Sat, 06 Nov 2010 11:17:20 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Anfängerproblemen on Sat, 06 Nov 2010 11:21:58 GMT]]></title><description><![CDATA[<p>ich glaube diese sprache übersteigt meinen Intelekt. Ich check das nicht, jetzt gehts wieder nicht. er mekert irgendwas von wegen kann nicht konvertiert werden</p>
<pre><code class="language-cpp">int main(){
	srand((unsigned)time(NULL));
	int rand1;
	rand1 = rand;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1975929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1975929</guid><dc:creator><![CDATA[TheRyco]]></dc:creator><pubDate>Sat, 06 Nov 2010 11:21:58 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Anfängerproblemen on Sat, 06 Nov 2010 11:23:35 GMT]]></title><description><![CDATA[<p>klammern vergessen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1975930</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1975930</guid><dc:creator><![CDATA[TheRyco]]></dc:creator><pubDate>Sat, 06 Nov 2010 11:23:35 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Anfängerproblemen on Sat, 06 Nov 2010 11:54:01 GMT]]></title><description><![CDATA[<p>TheRyco schrieb:</p>
<blockquote>
<p>klammern vergessen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
</blockquote>
<p>versuch auch zu verstehen, wieso da klammern hin gehöhren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1975955</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1975955</guid><dc:creator><![CDATA[JaykopX]]></dc:creator><pubDate>Sat, 06 Nov 2010 11:54:01 GMT</pubDate></item></channel></rss>