<?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[array aus Funktionenzeigern in VC++12-C++]]></title><description><![CDATA[<p>Wie macht man in VC++12 am besten ein Array aus Funktionszeigern? In g++-C++ sieht mein Code so aus:</p>
<pre><code class="language-cpp">int f1()
{
foo;
}
int f(2)
{
bar;
}

auto MyArray = {f1, f2};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/306436/array-aus-funktionenzeigern-in-vc-12-c</link><generator>RSS for Node</generator><lastBuildDate>Sat, 08 Aug 2026 05:25:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/306436.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 28 Jul 2012 15:44:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to array aus Funktionenzeigern in VC++12-C++ on Sat, 28 Jul 2012 15:44:26 GMT]]></title><description><![CDATA[<p>Wie macht man in VC++12 am besten ein Array aus Funktionszeigern? In g++-C++ sieht mein Code so aus:</p>
<pre><code class="language-cpp">int f1()
{
foo;
}
int f(2)
{
bar;
}

auto MyArray = {f1, f2};
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2236466</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236466</guid><dc:creator><![CDATA[fdfg]]></dc:creator><pubDate>Sat, 28 Jul 2012 15:44:26 GMT</pubDate></item><item><title><![CDATA[Reply to array aus Funktionenzeigern in VC++12-C++ on Sat, 28 Jul 2012 15:51:22 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int main()
{
	typedef int(*ptf)();
	ptf MyArray[] = {f1, f2};
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2236467</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236467</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sat, 28 Jul 2012 15:51:22 GMT</pubDate></item><item><title><![CDATA[Reply to array aus Funktionenzeigern in VC++12-C++ on Sat, 28 Jul 2012 15:52:40 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;functional&gt;
using namespace std;

void f1()
{
    cout &lt;&lt; &quot;foo&quot; &lt;&lt; '\n';
}

void f2()
{
    cout &lt;&lt; &quot;bar&quot; &lt;&lt; '\n';
}

int main()
{
	function&lt;void()&gt; fu1(f1);
	function&lt;void()&gt; fu2(f2);

	function&lt;void()&gt; something[] = {fu1, fu2};
	something[0]();
	something[1]();

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2236468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236468</guid><dc:creator><![CDATA[IrgendeinName]]></dc:creator><pubDate>Sat, 28 Jul 2012 15:52:40 GMT</pubDate></item><item><title><![CDATA[Reply to array aus Funktionenzeigern in VC++12-C++ on Sat, 28 Jul 2012 16:13:59 GMT]]></title><description><![CDATA[<p>Gugelmoser schrieb:</p>
<blockquote>
<pre><code class="language-cpp">int main()
{
	typedef int(*ptf)();
	ptf MyArray[] = {f1, f2};
}
</code></pre>
</blockquote>
<p>thx a lot</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2236473</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2236473</guid><dc:creator><![CDATA[fdfg]]></dc:creator><pubDate>Sat, 28 Jul 2012 16:13:59 GMT</pubDate></item></channel></rss>