<?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[Extremer Neuling findet Fehler nicht!]]></title><description><![CDATA[<p>Hallo,<br />
ich bin heute angefangen mit C++, wobei ich vorher nur PHP &amp; MySQL beherrsche. Nun werden im folgenden Code immer Fehler angezeigt, die ich nicht finde:</p>
<pre><code class="language-cpp">// Addieren von 2 Zahlenwerten
#include &lt;iostream&gt;
using namespace std;

int main(void) {
    int zahla;
    int zahlb;
    int summe;
    cout &lt;&lt; &quot;Bitte erste Zahl eingeben: &quot;;
    cin  &gt;&gt; zahla;
    cout &lt;&lt; &quot;\n Bitte zweite Zahl eingeben: &quot;;
    cin  &gt;&gt; zahlb;
    summe = zahla + zahlb;

    cout &lt;&lt; zahla 
         &lt;&lt; &quot; + &quot; 
         &lt;&lt; zahlb 
         &lt;&lt; &quot; = &quot; 
         &lt;&lt; summe 
         &lt;&lt; '\n';
    system(&quot;PAUSE&quot;);
    return 0;
}
</code></pre>
<p>Was ist denn daran falsch?? <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>
]]></description><link>https://www.c-plusplus.net/forum/topic/203225/extremer-neuling-findet-fehler-nicht</link><generator>RSS for Node</generator><lastBuildDate>Wed, 07 Oct 2026 14:02:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/203225.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 20 Jan 2008 14:30:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Sun, 20 Jan 2008 14:30:57 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich bin heute angefangen mit C++, wobei ich vorher nur PHP &amp; MySQL beherrsche. Nun werden im folgenden Code immer Fehler angezeigt, die ich nicht finde:</p>
<pre><code class="language-cpp">// Addieren von 2 Zahlenwerten
#include &lt;iostream&gt;
using namespace std;

int main(void) {
    int zahla;
    int zahlb;
    int summe;
    cout &lt;&lt; &quot;Bitte erste Zahl eingeben: &quot;;
    cin  &gt;&gt; zahla;
    cout &lt;&lt; &quot;\n Bitte zweite Zahl eingeben: &quot;;
    cin  &gt;&gt; zahlb;
    summe = zahla + zahlb;

    cout &lt;&lt; zahla 
         &lt;&lt; &quot; + &quot; 
         &lt;&lt; zahlb 
         &lt;&lt; &quot; = &quot; 
         &lt;&lt; summe 
         &lt;&lt; '\n';
    system(&quot;PAUSE&quot;);
    return 0;
}
</code></pre>
<p>Was ist denn daran falsch?? <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1439926</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1439926</guid><dc:creator><![CDATA[Tonius]]></dc:creator><pubDate>Sun, 20 Jan 2008 14:30:57 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Sun, 20 Jan 2008 14:43:06 GMT]]></title><description><![CDATA[<p>also erstmal, bitte immer die fehler mit posten, weil zumindest meine glaskugel ist kaputt und kaffesatz kann ich auch nicht lesen...</p>
<p>für eine neue zeile kann man auch endl benutzen, das aber nur am rande (also z.B. cout &lt;&lt; endl; anstatt cout &lt;&lt; '\n'; )</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1439939</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1439939</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Sun, 20 Jan 2008 14:43:06 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Sun, 20 Jan 2008 14:43:55 GMT]]></title><description><![CDATA[<p>Ich sehe da keine Fehler, und kompilieren tut es bei mir auch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1439941</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1439941</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Sun, 20 Jan 2008 14:43:55 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Sun, 20 Jan 2008 16:29:28 GMT]]></title><description><![CDATA[<p>was hast du denn für ein betriebssystem? vll. liegt ja an dem system(&quot;PAUSE&quot;)<br />
mach stattdessen mal #include &lt;conio.h&gt; und als befehl statt system(&quot;PAUSE&quot;) getch();</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1440005</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1440005</guid><dc:creator><![CDATA[tester]]></dc:creator><pubDate>Sun, 20 Jan 2008 16:29:28 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Sun, 20 Jan 2008 17:07:58 GMT]]></title><description><![CDATA[<p>tester schrieb:</p>
<blockquote>
<p>was hast du denn für ein betriebssystem? vll. liegt ja an dem system(&quot;PAUSE&quot;)<br />
mach stattdessen mal #include &lt;conio.h&gt; und als befehl statt system(&quot;PAUSE&quot;) getch();</p>
</blockquote>
<p>Habe Windows XP - funktioniert trotzdem nicht!!<br />
Fehlermeldung ist die folgende:</p>
<pre><code class="language-cpp">multiple definition of 'main'
first defined here
Id returned 1 exit status
[Build Error] [&quot;C++] Error 1
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1440025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1440025</guid><dc:creator><![CDATA[Tonius]]></dc:creator><pubDate>Sun, 20 Jan 2008 17:07:58 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Sun, 20 Jan 2008 17:10:52 GMT]]></title><description><![CDATA[<p>Tonius schrieb:</p>
<blockquote>
<pre><code class="language-cpp">multiple definition of 'main'
first defined here
Id returned 1 exit status
[Build Error] [&quot;C++] Error 1
</code></pre>
</blockquote>
<p>Dann ist das oben nicht der Gesamtcode. Der Fehler sagt aus das du &quot;main&quot; mehrfach definiert hast (z.B. hast du in deinem Projekt zwei verschieden Sourcefiles mit jeweils einer main?).</p>
<p>cu André</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1440026</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1440026</guid><dc:creator><![CDATA[asc]]></dc:creator><pubDate>Sun, 20 Jan 2008 17:10:52 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Sun, 20 Jan 2008 17:13:21 GMT]]></title><description><![CDATA[<p>Also selbst wenn es kein &quot;pause&quot; geben sollte, kompiliert das Programm, es gibt nur einen runtime-error (bei mir: &quot;sh: PAUSE: not found&quot;)<br />
Welcher Compiler? mingw?<br />
mach mal &quot;int main(){&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1440028</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1440028</guid><dc:creator><![CDATA[langeweile]]></dc:creator><pubDate>Sun, 20 Jan 2008 17:13:21 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Sun, 20 Jan 2008 18:48:57 GMT]]></title><description><![CDATA[<p>Mein Compiler ist Dev-C++.<br />
Egal was ich ändere, der Compiler kompiliert nicht. system(&quot;PAUSE&quot;) muss es geben, weil wenn ich das sonst NICHT benutze, schließt sich das Fenster stofort wieder. Ich lerne durch das Buch C++ von A bis Z.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1440101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1440101</guid><dc:creator><![CDATA[Tonius]]></dc:creator><pubDate>Sun, 20 Jan 2008 18:48:57 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Sun, 20 Jan 2008 18:58:22 GMT]]></title><description><![CDATA[<p>Dev-Cpp ist nur eine IDE, der Compiler dahinter ist normalerweise MingW32!</p>
<p>Erstelle mal _ein_ neues Projekt mit _einer_ Quelldatei, kopiere den Code rein und versuche das nochmal...</p>
<p>Ich würde dir übrigens zu Code::Blocks raten, dass ist quasi Dev-Cpp in neuer/besser/schöner/weniger bugs<br />
Allerdings ist die Installation der (zu empfehlenden) Nightly Builds ist allerdings (etwas) tricky...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1440106</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1440106</guid><dc:creator><![CDATA[langeweile]]></dc:creator><pubDate>Sun, 20 Jan 2008 18:58:22 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Sun, 20 Jan 2008 20:38:32 GMT]]></title><description><![CDATA[<pre><code>#include &lt;iostream&gt;
using namespace std;

int main(void) {
    int zahla;
    int zahlb;
    int summe;
    cout &lt;&lt; &quot;Bitte erste Zahl eingeben: &quot;;
    cin  &gt;&gt; zahla;
    cout &lt;&lt; &quot;\n Bitte zweite Zahl eingeben: &quot;;
    cin  &gt;&gt; zahlb;
    summe = zahla + zahlb;

    cout &lt;&lt; zahla
         &lt;&lt; &quot; + &quot;
         &lt;&lt; zahlb
         &lt;&lt; &quot; = &quot;
         &lt;&lt; summe
         &lt;&lt; '\n';
    system(&quot;PAUSE&quot;);
    return 0;
}
</code></pre>
<p>also ich konnte den code so wie du ihn gepostet hast problemslos kompilieren!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1440180</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1440180</guid><dc:creator><![CDATA[tester]]></dc:creator><pubDate>Sun, 20 Jan 2008 20:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Sun, 20 Jan 2008 21:14:18 GMT]]></title><description><![CDATA[<p>wie bereits gesagt, wird er wahrscheinlich mehrere Quelldateien wenn auch ungewollt compilieren</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1440199</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1440199</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Sun, 20 Jan 2008 21:14:18 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Mon, 21 Jan 2008 14:33:25 GMT]]></title><description><![CDATA[<p>wenn ich ein neues projekt erstelle für jede datei funktioniert es..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1440649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1440649</guid><dc:creator><![CDATA[Tonius]]></dc:creator><pubDate>Mon, 21 Jan 2008 14:33:25 GMT</pubDate></item><item><title><![CDATA[Reply to Extremer Neuling findet Fehler nicht! on Mon, 21 Jan 2008 14:34:42 GMT]]></title><description><![CDATA[<p>Tonius schrieb:</p>
<blockquote>
<p>wenn ich ein neues projekt erstelle für jede datei funktioniert es..</p>
</blockquote>
<p>Sagen wir das nicht die ganze Zeit?</p>
<p>_Ein_ Projekt erzeugt _eine_ DLL/EXE/wasauchimmer. Und _eine_ EXE hat nur _ein_ Hauptprogramm. Wäre sonst auch etwas blöd für den Computer, immer auszuwürfeln, welches Hauptprogramm er nun startet <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1440651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1440651</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Mon, 21 Jan 2008 14:34:42 GMT</pubDate></item></channel></rss>