<?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[C++ Hilfe (Ein- &amp;amp; Ausgabe)+ Primzahlen]]></title><description><![CDATA[<p>Hallo,</p>
<p>und zwar benötige ich bei 2 Punkten Hilfe.</p>
<p>Wir haben gerade einen Start in C++ und wir haben die Aufgabe</p>
<p>1st Zahleneingabe und das Programm soll schauen, ob die Zahl positiv oder negativ ist. Bei Negativ Stop und Ausgabe der höchsten, mittleren und niedrigen Zahl</p>
<p>2nd die ersten 1000 Primzahlen ausgeben.</p>
<p>Problem ist dabei nicht unbedingt die Idee, sondern eher die Umsetzung, da ich bisher noch nie C++ Programmiert habe.</p>
<p>Ich hoffe mir können einige Helfen.</p>
<p>LG Konsti</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/313361/c-hilfe-ein-amp-ausgabe-primzahlen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 02 Aug 2026 04:52:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/313361.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 28 Jan 2013 18:20:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ Hilfe (Ein- &amp;amp; Ausgabe)+ Primzahlen on Mon, 28 Jan 2013 18:20:18 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>und zwar benötige ich bei 2 Punkten Hilfe.</p>
<p>Wir haben gerade einen Start in C++ und wir haben die Aufgabe</p>
<p>1st Zahleneingabe und das Programm soll schauen, ob die Zahl positiv oder negativ ist. Bei Negativ Stop und Ausgabe der höchsten, mittleren und niedrigen Zahl</p>
<p>2nd die ersten 1000 Primzahlen ausgeben.</p>
<p>Problem ist dabei nicht unbedingt die Idee, sondern eher die Umsetzung, da ich bisher noch nie C++ Programmiert habe.</p>
<p>Ich hoffe mir können einige Helfen.</p>
<p>LG Konsti</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2294234</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2294234</guid><dc:creator><![CDATA[KonstiYo]]></dc:creator><pubDate>Mon, 28 Jan 2013 18:20:18 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Hilfe (Ein- &amp;amp; Ausgabe)+ Primzahlen on Mon, 28 Jan 2013 18:24:04 GMT]]></title><description><![CDATA[<p>Schaue dir den Thread Linkliste für Neulinge an, arbeite alle Bücher durch und wenn du dann noch Fragen hast, frag. <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/2294236</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2294236</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Mon, 28 Jan 2013 18:24:04 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Hilfe (Ein- &amp;amp; Ausgabe)+ Primzahlen on Mon, 28 Jan 2013 18:27:32 GMT]]></title><description><![CDATA[<p>KonstiYo schrieb:</p>
<blockquote>
<p>1st Zahleneingabe und das Programm soll schauen, ob die Zahl positiv oder negativ ist. Bei Negativ Stop und Ausgabe der höchsten, mittleren und niedrigen Zahl</p>
</blockquote>
<pre><code class="language-cpp">bool negativ = zahl &lt; 0;
minZahl = std::min(minZahl, eingabe); // bzw. max für größte
</code></pre>
<p>&quot;mittlere Zahl&quot; ist zu ungenau. Durchschnitt? Median?</p>
<blockquote>
<p>2nd die ersten 1000 Primzahlen ausgeben.</p>
</blockquote>
<p>Der Modulo-Operator in C++ ist %.</p>
<pre><code class="language-cpp">int remainder = a % b;
</code></pre>
<p>Schleifen gehn mit <code>for</code> .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2294237</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2294237</guid><dc:creator><![CDATA[Captain Obvious]]></dc:creator><pubDate>Mon, 28 Jan 2013 18:27:32 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Hilfe (Ein- &amp;amp; Ausgabe)+ Primzahlen on Mon, 28 Jan 2013 20:39:57 GMT]]></title><description><![CDATA[<p>Es ging auch wie ich oben geschrieben habe nicht um die grundsetzlichen Idee, sondern um die Unterschiede der Syntax. Egal .. vergesst es</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2294299</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2294299</guid><dc:creator><![CDATA[KonstiYo]]></dc:creator><pubDate>Mon, 28 Jan 2013 20:39:57 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Hilfe (Ein- &amp;amp; Ausgabe)+ Primzahlen on Mon, 28 Jan 2013 20:49:46 GMT]]></title><description><![CDATA[<p>KonstiYo schrieb:</p>
<blockquote>
<p>Es ging auch wie ich oben geschrieben habe nicht um die grundsetzlichen Idee, sondern um die Unterschiede der Syntax. Egal .. vergesst es</p>
</blockquote>
<p>Das haste jetzt in den falchen Hals gekriegt. Ich mach's Dir.</p>
<pre><code>#include &lt;iostream&gt;
using namespace std;

int main()
{
    double zahl;
    cin&gt;&gt;zahl;
    double kleinste=zahl;
    double grosste=zahl;
    double summe=zahl;
    int anzahl=1;
    while(zahl&gt;0){
            summe=summe+zahl;
            if(zahl&lt;kleinste)
                kleinste=zahl;
            if(zahl&gt;groesste)
                groesste=zahl;
            cin&lt;&lt;zahl;
    }
    double durchschnitt=summe/anzahl;

    return 0;
}
</code></pre>
<p>Falls mit der MIttleren der Durchschnitt gemeint war. Falls es die mittlere ist, der Mediand, dass wird's komplizioerter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2294300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2294300</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Mon, 28 Jan 2013 20:49:46 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Hilfe (Ein- &amp;amp; Ausgabe)+ Primzahlen on Mon, 28 Jan 2013 20:52:32 GMT]]></title><description><![CDATA[<p>KonstiYo schrieb:</p>
<blockquote>
<p>Es ging auch wie ich oben geschrieben habe nicht um die grundsetzlichen Idee, sondern um die Unterschiede der Syntax. Egal .. vergesst es</p>
</blockquote>
<p>Naja, wenn dir die Antworten nicht passen, stell halt bessere Fragen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2294302</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2294302</guid><dc:creator><![CDATA[Captain Obvious]]></dc:creator><pubDate>Mon, 28 Jan 2013 20:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Hilfe (Ein- &amp;amp; Ausgabe)+ Primzahlen on Mon, 28 Jan 2013 21:03:48 GMT]]></title><description><![CDATA[<p>Ich bin fast sicher, daß der Prof die korrekte Lösung</p>
<pre><code>cout&lt;&lt;2&lt;&lt;3&lt;&lt;5&lt;&lt;7&lt;&lt;11&lt;&lt;13&lt;&lt;17&lt;&lt;19&lt;&lt;23&lt;&lt;29&lt;&lt;31&lt;&lt;37&lt;&lt;41&lt;&lt;43&lt;&lt;47&lt;&lt;53&lt;&lt;59&lt;&lt;61&lt;&lt;67&lt;&lt;71
&lt;&lt;73&lt;&lt;79&lt;&lt;83&lt;&lt;89&lt;&lt;97&lt;&lt;101&lt;&lt;103&lt;&lt;107&lt;&lt;109&lt;&lt;113&lt;&lt;127&lt;&lt;131&lt;&lt;137&lt;&lt;139&lt;&lt;149&lt;&lt;151&lt;&lt;157
&lt;&lt;163&lt;&lt;167&lt;&lt;173&lt;&lt;179&lt;&lt;181&lt;&lt;191&lt;&lt;193&lt;&lt;197&lt;&lt;199&lt;&lt;211&lt;&lt;223&lt;&lt;227&lt;&lt;229&lt;&lt;233&lt;&lt;239&lt;&lt;241
&lt;&lt;251&lt;&lt;257&lt;&lt;263&lt;&lt;269&lt;&lt;271&lt;&lt;277&lt;&lt;281&lt;&lt;283&lt;&lt;293&lt;&lt;307&lt;&lt;311&lt;&lt;313&lt;&lt;317&lt;&lt;331&lt;&lt;337&lt;&lt;347
&lt;&lt;349&lt;&lt;353&lt;&lt;359&lt;&lt;367&lt;&lt;373&lt;&lt;379&lt;&lt;383&lt;&lt;389&lt;&lt;397&lt;&lt;401&lt;&lt;409&lt;&lt;419&lt;&lt;421&lt;&lt;431&lt;&lt;433&lt;&lt;439
&lt;&lt;443&lt;&lt;449&lt;&lt;457&lt;&lt;461&lt;&lt;463&lt;&lt;467&lt;&lt;479&lt;&lt;487&lt;&lt;491&lt;&lt;499&lt;&lt;503&lt;&lt;509&lt;&lt;521&lt;&lt;523&lt;&lt;541&lt;&lt;547
&lt;&lt;557&lt;&lt;563&lt;&lt;569&lt;&lt;571&lt;&lt;577&lt;&lt;587&lt;&lt;593&lt;&lt;599&lt;&lt;601&lt;&lt;607&lt;&lt;613&lt;&lt;617&lt;&lt;619&lt;&lt;631&lt;&lt;641&lt;&lt;643
&lt;&lt;647&lt;&lt;653&lt;&lt;659&lt;&lt;661&lt;&lt;673&lt;&lt;677&lt;&lt;683&lt;&lt;691&lt;&lt;701&lt;&lt;709&lt;&lt;719&lt;&lt;727&lt;&lt;733&lt;&lt;739&lt;&lt;743&lt;&lt;751
&lt;&lt;757&lt;&lt;761&lt;&lt;769&lt;&lt;773&lt;&lt;787&lt;&lt;797&lt;&lt;809&lt;&lt;811&lt;&lt;821&lt;&lt;823&lt;&lt;827&lt;&lt;829&lt;&lt;839&lt;&lt;853&lt;&lt;857&lt;&lt;859
&lt;&lt;863&lt;&lt;877&lt;&lt;881&lt;&lt;883&lt;&lt;887&lt;&lt;907&lt;&lt;911&lt;&lt;919&lt;&lt;929&lt;&lt;937&lt;&lt;941&lt;&lt;947&lt;&lt;953&lt;&lt;967&lt;&lt;971&lt;&lt;977
&lt;&lt;983&lt;&lt;991&lt;&lt;997;
</code></pre>
<p>nicht zulassen wird.<br />
Zeig, was Du hast. Bestimmt fehlt nur eine Kleinigkeit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2294304</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2294304</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Mon, 28 Jan 2013 21:03:48 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Hilfe (Ein- &amp;amp; Ausgabe)+ Primzahlen on Mon, 28 Jan 2013 21:04:25 GMT]]></title><description><![CDATA[<p>Je später der Abend, desto unterhaltsamer der Volkard.</p>
<p>Das sind übrigens die Primzahlen &lt; 1000, nicht die ersten tausend Primzahlen. <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/2294305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2294305</guid><dc:creator><![CDATA[Captain Obvious]]></dc:creator><pubDate>Mon, 28 Jan 2013 21:04:25 GMT</pubDate></item><item><title><![CDATA[Reply to C++ Hilfe (Ein- &amp;amp; Ausgabe)+ Primzahlen on Tue, 29 Jan 2013 06:44:29 GMT]]></title><description><![CDATA[<p>Daran schreibt Volkard ja noch <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";D"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2294355</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2294355</guid><dc:creator><![CDATA[Skym0sh0]]></dc:creator><pubDate>Tue, 29 Jan 2013 06:44:29 GMT</pubDate></item></channel></rss>