<?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[Klassen -&amp;gt; Funktion ( problem )]]></title><description><![CDATA[<p>Ich habe mal ne Frage :<br />
-Wenn ich eine funktion schreibe , die als parameter ein Objekt hat , also</p>
<pre><code>class a
{
int funk(a objekt)
{
//mach was ...
}
};
</code></pre>
<p>Was eird dann in dieser funktion zurück gegeben , also was ist der rückgabe wert einer funktion die als klassen objekt defieniert ist ???</p>
<p>Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/137599/klassen-gt-funktion-problem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 19:40:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/137599.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Feb 2006 21:24:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Klassen -&amp;gt; Funktion ( problem ) on Sat, 18 Feb 2006 21:24:54 GMT]]></title><description><![CDATA[<p>Ich habe mal ne Frage :<br />
-Wenn ich eine funktion schreibe , die als parameter ein Objekt hat , also</p>
<pre><code>class a
{
int funk(a objekt)
{
//mach was ...
}
};
</code></pre>
<p>Was eird dann in dieser funktion zurück gegeben , also was ist der rückgabe wert einer funktion die als klassen objekt defieniert ist ???</p>
<p>Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/997550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/997550</guid><dc:creator><![CDATA[N==B]]></dc:creator><pubDate>Sat, 18 Feb 2006 21:24:54 GMT</pubDate></item><item><title><![CDATA[Reply to Klassen -&amp;gt; Funktion ( problem ) on Sat, 18 Feb 2006 21:49:12 GMT]]></title><description><![CDATA[<p>in deinem fall ist &quot;int&quot; der rückgabewert.<br />
immer das, was davorsteht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/997556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/997556</guid><dc:creator><![CDATA[boardmonster]]></dc:creator><pubDate>Sat, 18 Feb 2006 21:49:12 GMT</pubDate></item><item><title><![CDATA[Reply to Klassen -&amp;gt; Funktion ( problem ) on Sun, 19 Feb 2006 07:34:11 GMT]]></title><description><![CDATA[<p>Jo , stimmt , mein fehler :<br />
Es sollte so heissen :</p>
<pre><code>class a 
{ 
(a f) funk(a objekt) 
{ 
//mach was ... 
} 
};
</code></pre>
<p>Also das sollte so heissen .</p>
]]></description><link>https://www.c-plusplus.net/forum/post/997612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/997612</guid><dc:creator><![CDATA[N==B]]></dc:creator><pubDate>Sun, 19 Feb 2006 07:34:11 GMT</pubDate></item><item><title><![CDATA[Reply to Klassen -&amp;gt; Funktion ( problem ) on Sun, 19 Feb 2006 10:09:34 GMT]]></title><description><![CDATA[<p>Troll??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/997638</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/997638</guid><dc:creator><![CDATA[Detector]]></dc:creator><pubDate>Sun, 19 Feb 2006 10:09:34 GMT</pubDate></item><item><title><![CDATA[Reply to Klassen -&amp;gt; Funktion ( problem ) on Sun, 19 Feb 2006 10:38:29 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">class a
{
private:
int a,b,c;
public:
a(){a=10;b=20;c=30};
int setA(int f){ a=f};
int setB(int f){ b=f};
int setC(int f){ c=f};
a function() 
{
a newA;
newA.setA(20);
newA.setB(20);
newA.setC(20);
return newA;
}

int main()
{
a someA;
a anotherA;
anotherA.setA(30);
anotherA.setB(30);
anotherA.setC(30);
someA=anotherA.function();
return 0;
}
</code></pre>
<p>fehlerfreiheit nicht garantiert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/997664</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/997664</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Sun, 19 Feb 2006 10:38:29 GMT</pubDate></item></channel></rss>