<?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[Befehl damit iergend eine Zahl von 1-100 angezeigt wird]]></title><description><![CDATA[<p>Wie schon im Topic beschrieben<br />
wie lautet der Befehl damit eine zuäfllige Zahl aufgewählt wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148902/befehl-damit-iergend-eine-zahl-von-1-100-angezeigt-wird</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 00:51:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148902.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 May 2006 14:29:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Befehl damit iergend eine Zahl von 1-100 angezeigt wird on Wed, 31 May 2006 14:29:28 GMT]]></title><description><![CDATA[<p>Wie schon im Topic beschrieben<br />
wie lautet der Befehl damit eine zuäfllige Zahl aufgewählt wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068862</guid><dc:creator><![CDATA[helperleich]]></dc:creator><pubDate>Wed, 31 May 2006 14:29:28 GMT</pubDate></item><item><title><![CDATA[Reply to Befehl damit iergend eine Zahl von 1-100 angezeigt wird on Wed, 31 May 2006 14:30:47 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Du meinst sicher nicht Befehle, sondern Funktionen.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068863</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068863</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 31 May 2006 14:30:47 GMT</pubDate></item><item><title><![CDATA[Reply to Befehl damit iergend eine Zahl von 1-100 angezeigt wird on Wed, 31 May 2006 14:31:54 GMT]]></title><description><![CDATA[<p>Axo<br />
Ein wenig genauer erklärt<br />
Ich brauche ein Programm das eine Zahl anzeigt iergedneine<br />
Also es fängt so an:</p>
<p>#inlude&lt;iostream&gt;<br />
using namespace std;</p>
<p>int main()</p>
<p>{<br />
cout&lt;&lt;&quot;Klicke Enter und dir wird eine individuelle Zahl gezeigt &quot;;<br />
cin.get();<br />
cout&lt;&lt;&quot; &quot;&lt;&lt;Befehl für zufällige Zahl&lt;&lt;&quot; ist die individuelle Zahl &quot;;<br />
cout&lt;&lt;&quot; \n Danke du kannst das Programm nun schliesen &quot;;<br />
cin.get();<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068864</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068864</guid><dc:creator><![CDATA[helpferein]]></dc:creator><pubDate>Wed, 31 May 2006 14:31:54 GMT</pubDate></item><item><title><![CDATA[Reply to Befehl damit iergend eine Zahl von 1-100 angezeigt wird on Wed, 31 May 2006 14:32:54 GMT]]></title><description><![CDATA[<p>kann auch sein welche funktion oder befehl muss denn da hin damit das gescheith das ich eben erklaert habe??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068865</guid><dc:creator><![CDATA[helperlein]]></dc:creator><pubDate>Wed, 31 May 2006 14:32:54 GMT</pubDate></item><item><title><![CDATA[Reply to Befehl damit iergend eine Zahl von 1-100 angezeigt wird on Wed, 31 May 2006 14:36:30 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Zufallsgenerator initialisieren:</p>
<pre><code class="language-cpp">srand((unsigned)time(NULL);
</code></pre>
<p>Für Zahlen zwischen 0 und 99:</p>
<pre><code class="language-cpp">int i=rand()%100;
</code></pre>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068870</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068870</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 31 May 2006 14:36:30 GMT</pubDate></item><item><title><![CDATA[Reply to Befehl damit iergend eine Zahl von 1-100 angezeigt wird on Wed, 31 May 2006 15:21:27 GMT]]></title><description><![CDATA[<p>wie muesste der code dann komplett aussehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068893</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068893</guid><dc:creator><![CDATA[helperlein]]></dc:creator><pubDate>Wed, 31 May 2006 15:21:27 GMT</pubDate></item><item><title><![CDATA[Reply to Befehl damit iergend eine Zahl von 1-100 angezeigt wird on Wed, 31 May 2006 15:24:44 GMT]]></title><description><![CDATA[<p>ah habs selbst geschafft<br />
#include&lt;iostream&gt;<br />
using namespace std;</p>
<p>int main()</p>
<p>{<br />
srand((unsigned)time(NULL));<br />
int i=rand()%100;</p>
<p>cout&lt;&lt;&quot; &quot;&lt;&lt;i&lt;&lt;&quot; &quot;;<br />
cin.get();<br />
}</p>
<p>aber jedes mal wenn ich das Programm wieder öffne zeigt er ne zahl die gröser ist bis er bei 100 angekommen ist dann wieder bei 1<br />
Will aber das immer ne zufälige Zahl rauskommt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068897</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068897</guid><dc:creator><![CDATA[helperlein]]></dc:creator><pubDate>Wed, 31 May 2006 15:24:44 GMT</pubDate></item><item><title><![CDATA[Reply to Befehl damit iergend eine Zahl von 1-100 angezeigt wird on Wed, 31 May 2006 15:30:14 GMT]]></title><description><![CDATA[<p>Das bekommst du so nicht durch den Compiler, am Anfang fehlen</p>
<pre><code class="language-cpp">#include &lt;cstdlib&gt;
#include &lt;ctime&gt;
</code></pre>
<p>Also zeig bitte den ganzen Code.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068907</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068907</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Wed, 31 May 2006 15:30:14 GMT</pubDate></item><item><title><![CDATA[Reply to Befehl damit iergend eine Zahl von 1-100 angezeigt wird on Wed, 31 May 2006 16:08:00 GMT]]></title><description><![CDATA[<p>nein genauso ist das<br />
bei mir geht das wunderbar</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068944</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068944</guid><dc:creator><![CDATA[helpderlein]]></dc:creator><pubDate>Wed, 31 May 2006 16:08:00 GMT</pubDate></item><item><title><![CDATA[Reply to Befehl damit iergend eine Zahl von 1-100 angezeigt wird on Wed, 31 May 2006 16:10:41 GMT]]></title><description><![CDATA[<p>Hmm, gut, meiner (gcc-3.4) kompilierts auch <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> (was nichts daran ändert das es falsch ist ;)).<br />
Aber bei mir macht das Programm auch was es soll (bzw. falls du 1-100 statt 0-99 haben willst, musst du auf i noch 1 draufaddieren).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068951</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068951</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Wed, 31 May 2006 16:10:41 GMT</pubDate></item><item><title><![CDATA[Reply to Befehl damit iergend eine Zahl von 1-100 angezeigt wird on Wed, 31 May 2006 16:18:35 GMT]]></title><description><![CDATA[<p>genau das will ich geaendert haben<br />
nur noch das fehlt das der ieregdnwelche nimmt und nicht immer hoehere zahlen nimmt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1068957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1068957</guid><dc:creator><![CDATA[helpderlein]]></dc:creator><pubDate>Wed, 31 May 2006 16:18:35 GMT</pubDate></item></channel></rss>