<?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[Ergebnisse&#x2F;Daten&#x2F;Variabeln aus Funktion außerhalb nutzen:]]></title><description><![CDATA[<p>Hallo.<br />
Meine Funktion macht etwas.<br />
Und ich möchte, dass das Ergebnis aus der Funktion raustransportiert wird, damit ich das Ergebnis auch außerhalb der Funktion nutzen kann.</p>
<p>Hier ein kleines Beispiel:</p>
<p>Imageshack - screenake</p>
<p>Ich will das ich int abc<br />
auch außerhalb benutzen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/248333/ergebnisse-daten-variabeln-aus-funktion-außerhalb-nutzen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 02:34:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/248333.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Aug 2009 18:48:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ergebnisse&#x2F;Daten&#x2F;Variabeln aus Funktion außerhalb nutzen: on Sun, 23 Aug 2009 18:48:46 GMT]]></title><description><![CDATA[<p>Hallo.<br />
Meine Funktion macht etwas.<br />
Und ich möchte, dass das Ergebnis aus der Funktion raustransportiert wird, damit ich das Ergebnis auch außerhalb der Funktion nutzen kann.</p>
<p>Hier ein kleines Beispiel:</p>
<p>Imageshack - screenake</p>
<p>Ich will das ich int abc<br />
auch außerhalb benutzen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1765416</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1765416</guid><dc:creator><![CDATA[panios]]></dc:creator><pubDate>Sun, 23 Aug 2009 18:48:46 GMT</pubDate></item><item><title><![CDATA[Reply to Ergebnisse&#x2F;Daten&#x2F;Variabeln aus Funktion außerhalb nutzen: on Sun, 23 Aug 2009 18:49:34 GMT]]></title><description><![CDATA[<p><a href="http://img512.imageshack.us/i/screenake.jpg/" rel="nofollow">http://img512.imageshack.us/i/screenake.jpg/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1765418</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1765418</guid><dc:creator><![CDATA[ich nochmal]]></dc:creator><pubDate>Sun, 23 Aug 2009 18:49:34 GMT</pubDate></item><item><title><![CDATA[Reply to Ergebnisse&#x2F;Daten&#x2F;Variabeln aus Funktion außerhalb nutzen: on Sun, 23 Aug 2009 18:52:25 GMT]]></title><description><![CDATA[<p>Wie wärs mit Rückgabewert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1765420</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1765420</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 23 Aug 2009 18:52:25 GMT</pubDate></item><item><title><![CDATA[Reply to Ergebnisse&#x2F;Daten&#x2F;Variabeln aus Funktion außerhalb nutzen: on Sun, 23 Aug 2009 19:12:13 GMT]]></title><description><![CDATA[<blockquote>
<p>Ich will das ich int abc<br />
auch außerhalb benutzen kann.</p>
</blockquote>
<p>Dann deklarier sie global.<br />
Auf die Variablen innerhalb der Funktion kannst du nicht zugreifen, da sie lokal sind.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1765430</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1765430</guid><dc:creator><![CDATA[Huhu21]]></dc:creator><pubDate>Sun, 23 Aug 2009 19:12:13 GMT</pubDate></item><item><title><![CDATA[Reply to Ergebnisse&#x2F;Daten&#x2F;Variabeln aus Funktion außerhalb nutzen: on Sun, 23 Aug 2009 21:24:53 GMT]]></title><description><![CDATA[<p>ja wenn ich den als return zurück gebe, wie setzte ich die variabel ein?!<br />
da musst doch sicherlich was hin weil sonst weiß der pc doch nicht, dass er die variabl da aus der funktion nehmen soll?!</p>
<p>also wenn return</p>
<p>retun variabelx;</p>
<p>ist, kann ich in der Main doch nicht einfach</p>
<p>cout &lt;&lt; variablx;</p>
<p>nehmen ?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1765519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1765519</guid><dc:creator><![CDATA[paniiii]]></dc:creator><pubDate>Sun, 23 Aug 2009 21:24:53 GMT</pubDate></item><item><title><![CDATA[Reply to Ergebnisse&#x2F;Daten&#x2F;Variabeln aus Funktion außerhalb nutzen: on Sun, 23 Aug 2009 21:27:33 GMT]]></title><description><![CDATA[<p>Nein, du musst die Funktion natürlich aufrufen und den Rückgabewert entweder in einer Variable speichern oder direkt im temporären Ausdruck nutzen.</p>
<p>Aber sowas sind wirklich allererste C++-Grundlagen. Lies in Ruhe ein Buch oder zur Not ein Tutorial, dann wird alles der Reihe nach erklärt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1765520</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1765520</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 23 Aug 2009 21:27:33 GMT</pubDate></item><item><title><![CDATA[Reply to Ergebnisse&#x2F;Daten&#x2F;Variabeln aus Funktion außerhalb nutzen: on Mon, 24 Aug 2009 18:09:46 GMT]]></title><description><![CDATA[<p>So kansnt du es machen:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

using namespace std;

int addieren (int xZahl)
{
    int abc = 123 + xZahl;

    return abc;
}

int main ()
{
    int abcMain = addieren(7);
    cout &lt;&lt; &quot;Wert von abc: &quot; &lt;&lt; abcMain &lt;&lt; endl;
    return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1765684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1765684</guid><dc:creator><![CDATA[pumpfrumpf]]></dc:creator><pubDate>Mon, 24 Aug 2009 18:09:46 GMT</pubDate></item><item><title><![CDATA[Reply to Ergebnisse&#x2F;Daten&#x2F;Variabeln aus Funktion außerhalb nutzen: on Mon, 24 Aug 2009 10:36:52 GMT]]></title><description><![CDATA[<p>Huhu21 schrieb:</p>
<blockquote>
<p>Dann deklarier sie global.</p>
</blockquote>
<p>Bitte nicht. Es gibt in mindestens 95% der Fälle Lösungen die deutlich besser sind (bessere Kapselung, weniger Namespace-Pollution, größere Sicherheit,...) als globale Variablen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1765723</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1765723</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Mon, 24 Aug 2009 10:36:52 GMT</pubDate></item></channel></rss>