<?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[Funktions Benutzung]]></title><description><![CDATA[<p>Ich hoffe die Frage ist nicht zu noobig, aber ich finde es einfach nicht raus.</p>
<p>Ich habe in einer Headerdatei (a.h) folgendes festgelegt</p>
<p>void getxy(int &amp;, int &amp;);</p>
<p>dazu habe ich in einer Datei (a.cpp) gesagt</p>
<p>void CPix::getxy(int&amp; xx, int&amp; yy)<br />
{<br />
xx =x;<br />
yy =y;<br />
}</p>
<p>wenn ich nun ein Objekt erzeuge</p>
<p>CPix p1;</p>
<p>und ich voher mit einem Setter x und y festgelegt habe.</p>
<p>Wie bekomme ich dann mit meinem getter x und y?</p>
<p>Vielen Dank schon mal für die Antwort?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/316469/funktions-benutzung</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 21:52:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/316469.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 May 2013 23:30:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Funktions Benutzung on Sun, 05 May 2013 17:46:33 GMT]]></title><description><![CDATA[<p>Ich hoffe die Frage ist nicht zu noobig, aber ich finde es einfach nicht raus.</p>
<p>Ich habe in einer Headerdatei (a.h) folgendes festgelegt</p>
<p>void getxy(int &amp;, int &amp;);</p>
<p>dazu habe ich in einer Datei (a.cpp) gesagt</p>
<p>void CPix::getxy(int&amp; xx, int&amp; yy)<br />
{<br />
xx =x;<br />
yy =y;<br />
}</p>
<p>wenn ich nun ein Objekt erzeuge</p>
<p>CPix p1;</p>
<p>und ich voher mit einem Setter x und y festgelegt habe.</p>
<p>Wie bekomme ich dann mit meinem getter x und y?</p>
<p>Vielen Dank schon mal für die Antwort?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2321052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2321052</guid><dc:creator><![CDATA[grunzi]]></dc:creator><pubDate>Sun, 05 May 2013 17:46:33 GMT</pubDate></item><item><title><![CDATA[Reply to Funktions Benutzung on Sat, 04 May 2013 23:34:57 GMT]]></title><description><![CDATA[<p>grunzi schrieb:</p>
<blockquote>
<p>Ich habe in einer Headerdatei (a.h) folgendes festgelegt</p>
<p>void getxy(int &amp;, int &amp;);</p>
<p>dazu habe ich in einer Datei (a.cpp) gesagt</p>
<p>void CPix::getxy(int&amp; xx, int&amp; yy)<br />
{<br />
xx =x;<br />
yy =y;<br />
}</p>
</blockquote>
<p>Warum schreibst du das denn so, wenn du gar nicht weißt, wie man das aufruft? Das ergibt irgendwie keinen Sinn.</p>
<blockquote>
<p>wenn ich nun ein Objekt erzeuge</p>
<p>CPix p1;</p>
<p>und ich voher mit einem Setter x und y festgelegt habe.</p>
<p>Wie bekomme ich dann mit meinem getter x und y?</p>
</blockquote>
<pre><code class="language-cpp">int x, y;
p1.getxy(x, y);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2321054</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2321054</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Sat, 04 May 2013 23:34:57 GMT</pubDate></item><item><title><![CDATA[Reply to Funktions Benutzung on Sun, 05 May 2013 00:08:46 GMT]]></title><description><![CDATA[<p>Das hatten wir so im Unterricht und ich muss das verstehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2321056</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2321056</guid><dc:creator><![CDATA[grunzi]]></dc:creator><pubDate>Sun, 05 May 2013 00:08:46 GMT</pubDate></item><item><title><![CDATA[Reply to Funktions Benutzung on Sun, 05 May 2013 08:25:46 GMT]]></title><description><![CDATA[<p>Hallo grunzi,</p>
<p>es ist sehr schlechter Stil einen Thread &quot;einfach Frage&quot; zu nennen. Bitte denke dir eine bessere Überschrift aus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2321083</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2321083</guid><dc:creator><![CDATA[schweinchen]]></dc:creator><pubDate>Sun, 05 May 2013 08:25:46 GMT</pubDate></item><item><title><![CDATA[Reply to Funktions Benutzung on Sun, 05 May 2013 17:48:00 GMT]]></title><description><![CDATA[<p>Ja sorry mir fällt hierfür einfach kein sinnvoller Titel ein.</p>
<p>Aber Danke für die Antwort für mich ist das &quot;Problem&quot; somit gelöst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2321179</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2321179</guid><dc:creator><![CDATA[grunzi]]></dc:creator><pubDate>Sun, 05 May 2013 17:48:00 GMT</pubDate></item></channel></rss>