<?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[Funktion aufrufen]]></title><description><![CDATA[<p>Hi alle!<br />
Könnte jemand mal sagen wie man eine funktion aufrufen kann, aber nicht so wie die normalen? Bsp wie ich es mir im einsatz vorstellen würde:</p>
<pre><code class="language-cpp">int abc (int a, int b, int c) { return a+b+c; }

FUNC myfunc;
myfunc = &amp;abc;
std::cout &lt;&lt; myfunc(1,2,3) &lt;&lt; std::endl;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/261561/funktion-aufrufen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 07 Sep 2026 05:33:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/261561.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 20 Feb 2010 14:44:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Funktion aufrufen on Sat, 20 Feb 2010 14:44:42 GMT]]></title><description><![CDATA[<p>Hi alle!<br />
Könnte jemand mal sagen wie man eine funktion aufrufen kann, aber nicht so wie die normalen? Bsp wie ich es mir im einsatz vorstellen würde:</p>
<pre><code class="language-cpp">int abc (int a, int b, int c) { return a+b+c; }

FUNC myfunc;
myfunc = &amp;abc;
std::cout &lt;&lt; myfunc(1,2,3) &lt;&lt; std::endl;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1858650</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1858650</guid><dc:creator><![CDATA[lk]]></dc:creator><pubDate>Sat, 20 Feb 2010 14:44:42 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion aufrufen on Sat, 20 Feb 2010 14:48:55 GMT]]></title><description><![CDATA[<p>lk schrieb:</p>
<blockquote>
<p>Könnte jemand mal sagen wie man eine funktion aufrufen kann, aber nicht so wie die normalen?</p>
</blockquote>
<p>Kannst du das deutlicher formulieren? Meinst du Funktionszeiger?</p>
<pre><code class="language-cpp">typedef int (*FUNC)(int, int, int);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1858654</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1858654</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sat, 20 Feb 2010 14:48:55 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion aufrufen on Sat, 20 Feb 2010 14:49:06 GMT]]></title><description><![CDATA[<p>Das was du suchst, nennt sich: &quot;Function pointer&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1858655</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1858655</guid><dc:creator><![CDATA[DerFurzer]]></dc:creator><pubDate>Sat, 20 Feb 2010 14:49:06 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion aufrufen on Sat, 20 Feb 2010 14:50:02 GMT]]></title><description><![CDATA[<p>wenn nicht:<br />
cout&lt;&lt;abc(1,2,3);</p>
<p>meinst du funktionspointer?</p>
<p><a href="http://www.mbernstein.de/atari/prog/kurse/c-kurs/0a08.htm" rel="nofollow">http://www.mbernstein.de/atari/prog/kurse/c-kurs/0a08.htm</a><br />
(mal den ersten link genommen, ohne auswahl..)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1858656</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1858656</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Sat, 20 Feb 2010 14:50:02 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion aufrufen on Sat, 20 Feb 2010 14:51:08 GMT]]></title><description><![CDATA[<p>Stichwort: <em>Functionpointer</em></p>
<pre><code class="language-cpp">int plus (int a, int b, int c) { return a+b+c; } // Funktion A
int mal (int a, int b, int c) { return a*b*c; } // Funktion B

int main(){
 int (*myfunc)(int,int,int);  // Pointer auf eine Funktion, die 3 int als Argumente nimmt
 myfunc = &amp;plus;
 std::cout &lt;&lt; myfunc(3,4,5) &lt;&lt; std::endl; 
 myfunc = &amp;mal;
 std::cout &lt;&lt; myfunc(3,4,5) &lt;&lt; std::endl; 
}
</code></pre>
<p>Ausgabe:</p>
<pre><code>12
60
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1858659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1858659</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sat, 20 Feb 2010 14:51:08 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion aufrufen on Sat, 20 Feb 2010 14:51:55 GMT]]></title><description><![CDATA[<p>Nexus schrieb:</p>
<blockquote>
<p>lk schrieb:</p>
<blockquote>
<p>Könnte jemand mal sagen wie man eine funktion aufrufen kann, aber nicht so wie die normalen?</p>
</blockquote>
<p>Kannst du das deutlicher formulieren? Meinst du Funktionszeiger?</p>
<pre><code class="language-cpp">typedef int (*FUNC)(int, int, int);
</code></pre>
</blockquote>
<p>Scheint so, aber was bedeuted das eigentlich und wie kriege ich das hin mit parameters verschidedenes typs und anzahl ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1858660</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1858660</guid><dc:creator><![CDATA[lk]]></dc:creator><pubDate>Sat, 20 Feb 2010 14:51:55 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion aufrufen on Sat, 20 Feb 2010 14:56:55 GMT]]></title><description><![CDATA[<p>Interessant, gerade 4 Beiträge mit dem gleichen Inhalt. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>lk schrieb:</p>
<blockquote>
<p>Scheint so, aber was bedeuted das eigentlich und wie kriege ich das hin mit parameters verschidedenes typs und anzahl ?</p>
</blockquote>
<p>Schau mal hier:<br />
<a href="http://www.newty.de/fpt/index.html" rel="nofollow">http://www.newty.de/fpt/index.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1858666</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1858666</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sat, 20 Feb 2010 14:56:55 GMT</pubDate></item></channel></rss>