<?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[Primzahlenzerlegung]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;cmath&gt;
using namespace std;
void main (void)
{
	int i , j , r ;
	cout &lt;&lt; &quot;Primzahlen von 0 bis 500&quot;&lt;&lt;endl;
	cout &lt;&lt; 2 &lt;&lt; endl;
	cout &lt;&lt; 3 &lt;&lt; endl;
	for	(i=5;i&lt;=500;i= i+2)
		{
			for (j = 3; j &lt;= sqrt((double)i); j = j + 2)
			{
				r=i%j;
				if (r==0);
			}
		if (r!=0) cout &lt;&lt;i&lt;&lt;endl;
		}
}
</code></pre>
<p>Ich bekomme da leider immer einen Fehler, dass &quot;r&quot; nicht benutzt wird. naja fehler ist schwer zu beschreiben. Guckt einfach bitte selber ich weiß auch nit wies weitergehen soll!! Es funktioniert zwar aber es kommt halt immer ein Fehler dass darf ja normal nit sein.</p>
<p>DANKE</p>
<p>lg<br />
wog</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/197934/primzahlenzerlegung</link><generator>RSS for Node</generator><lastBuildDate>Fri, 02 Oct 2026 18:25:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/197934.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Nov 2007 09:02:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:02:15 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;cmath&gt;
using namespace std;
void main (void)
{
	int i , j , r ;
	cout &lt;&lt; &quot;Primzahlen von 0 bis 500&quot;&lt;&lt;endl;
	cout &lt;&lt; 2 &lt;&lt; endl;
	cout &lt;&lt; 3 &lt;&lt; endl;
	for	(i=5;i&lt;=500;i= i+2)
		{
			for (j = 3; j &lt;= sqrt((double)i); j = j + 2)
			{
				r=i%j;
				if (r==0);
			}
		if (r!=0) cout &lt;&lt;i&lt;&lt;endl;
		}
}
</code></pre>
<p>Ich bekomme da leider immer einen Fehler, dass &quot;r&quot; nicht benutzt wird. naja fehler ist schwer zu beschreiben. Guckt einfach bitte selber ich weiß auch nit wies weitergehen soll!! Es funktioniert zwar aber es kommt halt immer ein Fehler dass darf ja normal nit sein.</p>
<p>DANKE</p>
<p>lg<br />
wog</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404129</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404129</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:02:15 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:03:44 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Was genau soll das hier bewirken?</p>
<pre><code class="language-cpp">if (r==0);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1404132</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404132</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:03:44 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:06:13 GMT]]></title><description><![CDATA[<p>ja wenn der Rest null ist dann ist es ja nur durch sich selbstteilbar.<br />
Aber ich sehe gerade dass es zwar was ausgibt, aber es funktioniert nicht ganz. er gibt z.b auch die 999 und 935 und so aus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404134</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404134</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:06:13 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:08:03 GMT]]></title><description><![CDATA[<p>Das mag ja sein, die Zeile bewirkt aber nichts <strong>(wirklich gar nichts!)</strong>. Als Folge einer if-Abfrage sollte vielleicht da noch irgendeine Anweisung stehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404137</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404137</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:08:03 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:16:32 GMT]]></title><description><![CDATA[<p>hmm kann sein. Ich darf c++ im Studium lernen und hab noch nit so de Plan:)</p>
<p><a href="http://www.wog-sen.de/prim.jpg" rel="nofollow">www.wog-sen.de/prim.jpg</a><br />
das ist die aufgabenstellung komme nit mehr ganz so weiter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404141</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:16:32 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:23:29 GMT]]></title><description><![CDATA[<p>wog schrieb:</p>
<blockquote>
<p>hmm kann sein. Ich darf c++ im Studium lernen und hab noch nit so de Plan:)</p>
<p><a href="http://www.wog-sen.de/prim.jpg" rel="nofollow">www.wog-sen.de/prim.jpg</a><br />
das ist die aufgabenstellung komme nit mehr ganz so weiter</p>
</blockquote>
<p>Uff, das ist aber eine ziemlich exakte Anleitung! Warum machst du's nicht genau so, wie es da steht? Vor allem, weil das auch ein Teil der Aufgabestellung ist <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Den Teil &quot;blabla wdh solange blabla&quot; kriegst du mit einer do { ... } while (...); hin.</p>
<p>Edit: Und was hast du bei dir überhaupt für einen Ansatz? Fängst an mit &quot;int i , j , r ;&quot;, laut Anleitung soll die erste Anweisung in deinem Programm <code>faktor = 2</code> sein. In C++ lautet das ungefähr so: <code>int faktor = 2;</code> . Der Rest ist genauso einfach zu übersetzen..<br />
Und wo hast du das &quot;Eingabe zahl&quot;?? Oh man..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404147</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404147</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:23:29 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:22:59 GMT]]></title><description><![CDATA[<p>ah ok ich gucke noch mal. stimmt die habe ich auch mal bei uns im script gelesen:)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404149</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:22:59 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:27:44 GMT]]></title><description><![CDATA[<p>muss icd die do/while funktion nur noch wo reinmachen oder muss ich alles noch mal komplett neu machen?`was kann ich denn alles lassen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404152</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404152</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:27:44 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:29:46 GMT]]></title><description><![CDATA[<p>Wenn du es genau wie das Struktogramm machen willst, solltest es noch mal neu machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404155</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404155</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:29:46 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:37:19 GMT]]></title><description><![CDATA[<p>hmm jo ok aber ich hab irgendwie nit so die Ahnung wie.ich hab gedacht ich hab schon nach struktogramm gearbeitet:)</p>
<p>oder ich wende mich erst mal an die fibonnacci zahlen sind vll erst mal einfacher. habt ihr denn dafür wichtige tipps was ich beachten soll</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404156</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404156</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:37:19 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:48:03 GMT]]></title><description><![CDATA[<p>Du hast ganz und gar nicht nach Struktogramm gearbeitet. In deiner Grafik steht als Überschrift &quot;Primfaktorzerlegung&quot;. Was du in deinem Code (erfolglos) versuchst , ist Primzahlen von 0 bis 500 auszugeben - und das ist nicht die Aufgabenstellung.</p>
<p>Das Struktogramm gibt dir wirklich haargenau vor, was du zu tun hast. Du musst nicht einmal mehr darüber Gedanken machen, wie das eigentlich funktioniert.</p>
<p>Also probiers einfach noch mal (exakt nach dem Struktogramm), dann poste dein Ergebnis noch einmal. Wenn es dann immer noch nicht funktioniert helfen wir dir gerne weiter.</p>
<p>Grüße... Heiko</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404165</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404165</guid><dc:creator><![CDATA[bwbg]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:48:03 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:50:49 GMT]]></title><description><![CDATA[<p>hmm ok danke ich verstehs einfach nit was ich da für funktionen machen muss und wie ich die dann verknüpfen muss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404167</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404167</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:50:49 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:55:28 GMT]]></title><description><![CDATA[<p>Was für Funktionen? Du brauchst hier keine Funktionen. Einfach das aufschreiben was da im Struktogramm steht. zeile für Zeile.<br />
Mal als Hinweise, die Abfrage für das r==0 sieht dann etwa so aus</p>
<pre><code class="language-cpp">if( rest == 0)
{
   cout &lt;&lt; faktor &lt;&lt; &quot;\n&quot;;
   zahl = zahl / faktor;
} else
{
   faktor = faktor + 1;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1404170</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404170</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:55:28 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 10:58:41 GMT]]></title><description><![CDATA[<p>Fang doch einfach oben an mit &quot;faktor = 2&quot;, das müsstest du ja hinkriegen <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=";)"
      alt="😉"
    /> Dann machst du dir eine Variable &quot;zahl&quot;, deren Wert der Benutzer eingibt. Danach folgt schon <code>do{...} while( faktor &lt;= sqrt(zahl) );</code> und am Schluss gibst du &quot;zahl&quot; aus. Den Rumpf lässt der do-while-Schleife lässt du erstmal leer. Wenn du das soweit hast, kannst du den Rumpf füllen, eigentlich auch ganz easy.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404172</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404172</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Fri, 16 Nov 2007 10:58:41 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 09:58:50 GMT]]></title><description><![CDATA[<p>warum gibts denn da überhaupt eine eingabe in dem struktogramm ich will doch dass er einfach bei5 anfängt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404176</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 09:58:50 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 10:02:14 GMT]]></title><description><![CDATA[<p>wog schrieb:</p>
<blockquote>
<p>warum gibts denn da überhaupt eine eingabe in dem struktogramm ich will doch dass er einfach bei5 anfängt</p>
</blockquote>
<p>Sollst Du jetzt ein Programm schreiben was dem Struktogramm gehorcht oder eines das bei 5 anfängt?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404180</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404180</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Fri, 16 Nov 2007 10:02:14 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 10:03:25 GMT]]></title><description><![CDATA[<p>ja struktogramm sollte ich machen. klappt ja nit so merkt ihr ja;9</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404181</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404181</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 10:03:25 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 10:09:34 GMT]]></title><description><![CDATA[<p>Badestrand schrieb:</p>
<blockquote>
<p>Fang doch einfach oben an mit &quot;faktor = 2&quot;, das müsstest du ja hinkriegen <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=";)"
      alt="😉"
    /> Dann machst du dir eine Variable &quot;zahl&quot;, deren Wert der Benutzer eingibt. Danach folgt schon <code>do{...} while( faktor &lt;= sqrt(zahl) );</code> und am Schluss gibst du &quot;zahl&quot; aus. Den Rumpf lässt der do-while-Schleife lässt du erstmal leer. Wenn du das soweit hast, kannst du den Rumpf füllen, eigentlich auch ganz easy.</p>
<p>Braunstein, du hast noch das &quot;faktor=2&quot; vergessen</p>
</blockquote>
<p>Was kommt denn in die do funktion rein?</p>
<p>Ist das dann des von Braunstein?</p>
<p>DANKE ihr seit echt super</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404184</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 10:09:34 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 10:12:20 GMT]]></title><description><![CDATA[<p>In dem kompletten Struktogramm kommt nicht ein einziges mal die Zahl '5' vor. Wie zum Henker kommst du auf 5? Das ist ja wie wenn mein Chef mir sagt, ich soll mit dem Auto nach Dresden fahren um an einem Meeting teilzunehmen, aber ich gehe stattdessen in den nächsten Garten und sammel Äpfel vom Boden auf. Oder so.<br />
Also jetzt im Ernst, mich interessiert das! <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="🙂"
    /> Wie kommst du auf 5?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404186</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404186</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Fri, 16 Nov 2007 10:12:20 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 10:13:32 GMT]]></title><description><![CDATA[<p>Badestrand schrieb:</p>
<blockquote>
<p>In dem kompletten Struktogramm kommt nicht ein einziges mal die Zahl '5' vor. Wie zum Henker kommst du auf 5? Das ist ja wie wenn mein Chef mir sagt, ich soll mit dem Auto nach Dresden fahren um an einem Meeting teilzunehmen, aber ich gehe stattdessen in den nächsten Garten und sammel Äpfel vom Boden auf. Oder so.<br />
Also jetzt im Ernst, mich interessiert das! <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="🙂"
    /> Wie kommst du auf 5?</p>
</blockquote>
<p>unser prof hat uns noch ein anderes programm in der vorlesung gezeigt vll habe ich mich ein bissl an dem versteift moment ich zeigs euch mal</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;cmath&gt;
using namespace std;
void main (void)
{
	int i, j, r = 1;
	cout &lt;&lt; &quot;Primzahlen im Intervall [1, 1000]:&quot; &lt;&lt; endl;
	cout &lt;&lt; 2 &lt;&lt; endl &lt;&lt; 3 &lt;&lt; endl;
	for (i = 5; i &lt;= 1000; i = i + 2)
	{
		for (j = 3; j &lt;= sqrt((double)i); j = j + 2)
		{
			r = i % j;
			if (r == 0) break; //Schleife verlassen
		}
		if (r != 0) cout &lt;&lt; i &lt;&lt; endl;
	}
}
</code></pre>
<p>[cpp]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404192</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404192</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 10:13:32 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 10:32:41 GMT]]></title><description><![CDATA[<p>Auf die Gefahr hin, mich zu wiederholen zitiere ich mich mal selbst:</p>
<p>bwbg schrieb:</p>
<blockquote>
<p>Du hast ganz und gar nicht nach Struktogramm gearbeitet. In deiner Grafik steht als Überschrift &quot;Primfaktorzerlegung&quot;. Was du in deinem Code (erfolglos) versuchst , ist Primzahlen von 0 bis 500 auszugeben - und das ist nicht die Aufgabenstellung.(...)</p>
</blockquote>
<p>So lieber wog, nun erkläre mir mal den Unterschied zwischen <em>Primzahlen im Interval 1, n</em> und das <em>Zerlegen einer Ganzzahl in ihre Primfaktoren</em>.</p>
<p>Wenn es jetzt nicht klingelt, solltest du das Studienfach wechseln...</p>
<p>Heiko</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404208</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404208</guid><dc:creator><![CDATA[bwbg]]></dc:creator><pubDate>Fri, 16 Nov 2007 10:32:41 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 10:37:55 GMT]]></title><description><![CDATA[<p>och scheiße:D man man man des kommt davon wenn man donnerstags abends auf erstsemesterparty geht:)[nein ich habe nix getrunken] Bin nur müde.</p>
<p>Sorry. Ich hab mich jetzt auch komplett auf die Zerlegung konzentriert aber klappt gerade noch nit ganz so. Naja ich werd mich noch mal meldne <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=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404218</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404218</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 10:37:55 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 10:39:44 GMT]]></title><description><![CDATA[<p>Badestrand schrieb:</p>
<blockquote>
<p>Braunstein, du hast noch das &quot;faktor=2&quot; vergessen</p>
</blockquote>
<p>Nö, habe ich nicht. Dann hätte ich ja auch gleich den ganzen Code hinschreiben können. <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="🙂"
    /><br />
Ich hatte hier nur das gefühl, das der Kollege mit if nicht zurechtkommt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404219</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404219</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 16 Nov 2007 10:39:44 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 11:00:31 GMT]]></title><description><![CDATA[<p>Könntet ihr hier bitte noch mal drüber gucken. Hab mal was versucht aber stimmt halt immer noch nicht alles.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;cmath&gt;
using namespace std;
void main (void)
{
	int faktor=2, zahl , rest ;
	cout &gt;&gt; &quot;Bitte die Zahl die zerlegt werden soll eingeben!!! &quot;
	cin &lt;&lt; Zahl;
	do
}
		rest = zahl % faktor;
		if( rest == 0)
	{
   cout &lt;&lt; faktor &lt;&lt; &quot;\zahl&quot;;
   zahl = zahl / faktor;
	} 
		else
	{
   faktor = faktor + 1;
	}
}
	while
	{
		faktor&lt;=sqrt(zahl);
	}
}
</code></pre>
<p>Habe noch ein Problem mit meinem Programm wenn ich auf &quot;Start ohne Debuggen&quot; klicke kommt immer folgende Fehlermeldung</p>
<p><a href="http://img261.imageshack.us/my.php?image=screen01ut6.jpg" rel="nofollow">http://img261.imageshack.us/my.php?image=screen01ut6.jpg</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404238</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404238</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 11:00:31 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 11:02:57 GMT]]></title><description><![CDATA[<p>Da unten steht's doch - &quot;45 Fehler, 1 Warnung(en)&quot;. Und der auffälligste Fehler in deinem Code ist, daß du nach dem &quot;do&quot; eine schließende Klammer gesetzt hast.</p>
<p>(außerdem heißt es immer noch &quot;<strong>int</strong> main()&quot;)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404241</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404241</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 16 Nov 2007 11:02:57 GMT</pubDate></item><item><title><![CDATA[Reply to Primzahlenzerlegung on Fri, 16 Nov 2007 11:10:23 GMT]]></title><description><![CDATA[<p>CStoll schrieb:</p>
<blockquote>
<p>Da unten steht's doch - &quot;45 Fehler, 1 Warnung(en)&quot;. Und der auffälligste Fehler in deinem Code ist, daß du nach dem &quot;do&quot; eine schließende Klammer gesetzt hast.</p>
<p>(außerdem heißt es immer noch &quot;<strong>int</strong> main()&quot;)</p>
</blockquote>
<p>wir ham gesagt bekommmen es heißt void main des kann er uns noch nit erklären aber wir sollens einfach immer hinschreibne komme später erst in der vorlesung.</p>
<p>Und warum hat der keine exe datei erstellt. ich bin hier fast am heulen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1404242</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1404242</guid><dc:creator><![CDATA[wog]]></dc:creator><pubDate>Fri, 16 Nov 2007 11:10:23 GMT</pubDate></item></channel></rss>