<?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[Id returned exit status]]></title><description><![CDATA[<p>Hallo, bekomme die Fehler Meldung Id returned exit Status,<br />
was wohl an meiner etwas abenteuerlichen Funktionen liegt.<br />
Wie könnte ich diese Problem behandeln?</p>
<pre><code>#ifndef _IOSTREAM
#define _IOSTREAM
#include &lt;iostream&gt;
using namespace std;
#endif

#ifndef _Ergebnisverwaltung_H_INCLUDED_ 
#define _Ergebnisverwaltung_H_INCLUDED_  

     int hinzufuegen(int ErgebnisMatrikelnummer)
     {
     return ErgebnisMatrikelnummer;
     }
     int ErgebnisMatrikelnummer=0;
	 int MatrikelStudent=hinzufuegen(ErgebnisMatrikelnummer);

	//void loeschen();

#endif
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/328399/id-returned-exit-status</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 17:18:02 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/328399.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Oct 2014 18:52:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Id returned exit status on Tue, 07 Oct 2014 18:52:50 GMT]]></title><description><![CDATA[<p>Hallo, bekomme die Fehler Meldung Id returned exit Status,<br />
was wohl an meiner etwas abenteuerlichen Funktionen liegt.<br />
Wie könnte ich diese Problem behandeln?</p>
<pre><code>#ifndef _IOSTREAM
#define _IOSTREAM
#include &lt;iostream&gt;
using namespace std;
#endif

#ifndef _Ergebnisverwaltung_H_INCLUDED_ 
#define _Ergebnisverwaltung_H_INCLUDED_  

     int hinzufuegen(int ErgebnisMatrikelnummer)
     {
     return ErgebnisMatrikelnummer;
     }
     int ErgebnisMatrikelnummer=0;
	 int MatrikelStudent=hinzufuegen(ErgebnisMatrikelnummer);

	//void loeschen();

#endif
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2421201</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421201</guid><dc:creator><![CDATA[Reeko25]]></dc:creator><pubDate>Tue, 07 Oct 2014 18:52:50 GMT</pubDate></item><item><title><![CDATA[Reply to Id returned exit status on Tue, 07 Oct 2014 19:03:15 GMT]]></title><description><![CDATA[<p>Das dürfte wohl ld sein, der sicher auch genauer sagt, was falsch ist. Möglicherweise ist die Funktion hinzufuegen mehrfach definiert, weil du sie im header, aber nicht inline definierst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421206</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421206</guid><dc:creator><![CDATA[manni66]]></dc:creator><pubDate>Tue, 07 Oct 2014 19:03:15 GMT</pubDate></item><item><title><![CDATA[Reply to Id returned exit status on Tue, 07 Oct 2014 19:10:56 GMT]]></title><description><![CDATA[<p>jetzt bekomm ich die Nachricht in file included,<br />
wenn ich die Funktiondefnition in die cpp-Datei schreibe,</p>
<pre><code>#include&lt;iostream&gt;
using namespace std;

#include &quot;Ergebnisverwaltung.h&quot;

   int hinzufuegen(int ErgebnisMatrikelnummer)
   {
   return ErgebnisMatrikelnummer;
   }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2421208</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421208</guid><dc:creator><![CDATA[Reeko25]]></dc:creator><pubDate>Tue, 07 Oct 2014 19:10:56 GMT</pubDate></item><item><title><![CDATA[Reply to Id returned exit status on Tue, 07 Oct 2014 19:32:42 GMT]]></title><description><![CDATA[<p>Du darfst auch gerne mal versuchen, mehr als eine einzelne Zeile einer Fehlermeldung lesen. Angeblich kann man sie dann auch verstehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421215</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 07 Oct 2014 19:32:42 GMT</pubDate></item><item><title><![CDATA[Reply to Id returned exit status on Wed, 08 Oct 2014 00:56:02 GMT]]></title><description><![CDATA[<p>In der .hpp nur<br />
int hinzufuegen(int ErgebnisMatrikelnummer);</p>
<p>und in der .cpp dann den code bitte.</p>
<p>Ähm,<br />
int ErgebnisMatrikelnummer=0;<br />
int MatrikelStudent=hinzufuegen(ErgebnisMatrikelnummer);<br />
gehören auch beide NICHT in eine Header-Datei.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421248</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421248</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Wed, 08 Oct 2014 00:56:02 GMT</pubDate></item><item><title><![CDATA[Reply to Id returned exit status on Wed, 08 Oct 2014 01:23:28 GMT]]></title><description><![CDATA[<p>Wo wir schon dabei sind: Es ist durchaus nicht so unüblich, dass eine Matrikelnummer mit einem Jahreskürzel beginnt (also zum Beispiel 09 für 2009), ziemlich viele Stellen hat, eventuell sogar Buchstaben enthält. Es ist hingegen äußerst unüblich, dass man die Summe oder den Durchschnitt aller Matrikelnummern einer Universität ausrechnen möchte. Vielleicht folgert der Threadersteller sogar etwas aus diesen Aussagen, was den Entwurf seiner Datenstrukturen angeht <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/2421251</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421251</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 08 Oct 2014 01:23:28 GMT</pubDate></item><item><title><![CDATA[Reply to Id returned exit status on Wed, 08 Oct 2014 07:12:23 GMT]]></title><description><![CDATA[<p>Danke für die Hilfe volkard.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421267</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421267</guid><dc:creator><![CDATA[Reeko25]]></dc:creator><pubDate>Wed, 08 Oct 2014 07:12:23 GMT</pubDate></item><item><title><![CDATA[Reply to Id returned exit status on Wed, 08 Oct 2014 07:36:33 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>int ErgebnisMatrikelnummer=0;<br />
[...]<br />
gehören auch beide NICHT in eine Header-Datei.</p>
</blockquote>
<p>warum nicht? So kann sich den default-Konstruktor sparen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421273</guid><dc:creator><![CDATA[daddy_felix]]></dc:creator><pubDate>Wed, 08 Oct 2014 07:36:33 GMT</pubDate></item><item><title><![CDATA[Reply to Id returned exit status on Wed, 08 Oct 2014 08:04:42 GMT]]></title><description><![CDATA[<p>daddy_felix schrieb:</p>
<blockquote>
<p>volkard schrieb:</p>
<blockquote>
<p>int ErgebnisMatrikelnummer=0;<br />
[...]<br />
gehören auch beide NICHT in eine Header-Datei.</p>
</blockquote>
<p>warum nicht? So kann sich den default-Konstruktor sparen.</p>
</blockquote>
<p>Da ist doch nicht einmal eine Klasse!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421275</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421275</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 08 Oct 2014 08:04:42 GMT</pubDate></item><item><title><![CDATA[Reply to Id returned exit status on Wed, 08 Oct 2014 08:05:56 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>daddy_felix schrieb:</p>
<blockquote>
<p>warum nicht? So kann sich den default-Konstruktor sparen.</p>
</blockquote>
<p>Da ist doch nicht einmal eine Klasse!</p>
</blockquote>
<p>oh... stimmt. Da hab ich wohl nicht richtig hingeguckt <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/2421276</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421276</guid><dc:creator><![CDATA[daddy_felix]]></dc:creator><pubDate>Wed, 08 Oct 2014 08:05:56 GMT</pubDate></item><item><title><![CDATA[Reply to Id returned exit status on Wed, 08 Oct 2014 09:18:33 GMT]]></title><description><![CDATA[<p>daddy_felix schrieb:</p>
<blockquote>
<p>volkard schrieb:</p>
<blockquote>
<p>int ErgebnisMatrikelnummer=0;<br />
[...]<br />
gehören auch beide NICHT in eine Header-Datei.</p>
</blockquote>
<p>warum nicht? So kann sich den default-Konstruktor sparen.</p>
</blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/22172">@Reeko25</a>:</p>
<p>In den Header nur per Deklaration anmelden, daß es die Variable gibt.</p>
<pre><code>extern int ErgebnisMatrikelnummer;
</code></pre>
<p>Und in der *.cpp sie dann erzeugen (und insbesondere den Speicher anlegen).</p>
<pre><code>int ErgebnisMatrikelnummer=0;
</code></pre>
<p>Sonst wirds knallen, wenn zwei *.cpp diesen Header einbinden, denn dann ist die Variable zweimal da und der Linker ist verwirrt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2421288</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2421288</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Wed, 08 Oct 2014 09:18:33 GMT</pubDate></item></channel></rss>