<?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[Funktionen deklarieren in C++]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich hab versucht eine funktion zu deklarieren, aber ich bekomme immer eine Fehler meldung und weiß nicht warum.<br />
Kann mir jemand helfen???</p>
<p>error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: &quot;default-int&quot; wird von C++ nicht unterstützt.</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &quot;iostream&quot;

using namespace std;

funk (int *a,int *b){

int temp =*a;
*a=*b;
*b=temp;
}
int main(int argc, char* argv[])
{
int a=0;
int b=0;
	cout &lt;&lt; &quot;geben sie zwei zahlen ein \n&quot;;
	cin &gt;&gt; a &gt;&gt; b;

	cout &lt;&lt;&quot;a=&quot; &lt;&lt;a &lt;&lt; &quot;\n&quot;;
	cout &lt;&lt;&quot;b=&quot; &lt;&lt;b &lt;&lt; &quot;\n\n&quot;;

funk (&amp;a,&amp;b);
	cout &lt;&lt;&quot;a=&quot; &lt;&lt;a &lt;&lt; &quot;\n&quot;;
	cout &lt;&lt;&quot;b=&quot; &lt;&lt;b &lt;&lt; &quot;\n&quot;;
	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/181392/funktionen-deklarieren-in-c</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 07:12:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/181392.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 May 2007 11:13:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Funktionen deklarieren in C++ on Sun, 13 May 2007 11:13:30 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich hab versucht eine funktion zu deklarieren, aber ich bekomme immer eine Fehler meldung und weiß nicht warum.<br />
Kann mir jemand helfen???</p>
<p>error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: &quot;default-int&quot; wird von C++ nicht unterstützt.</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &quot;iostream&quot;

using namespace std;

funk (int *a,int *b){

int temp =*a;
*a=*b;
*b=temp;
}
int main(int argc, char* argv[])
{
int a=0;
int b=0;
	cout &lt;&lt; &quot;geben sie zwei zahlen ein \n&quot;;
	cin &gt;&gt; a &gt;&gt; b;

	cout &lt;&lt;&quot;a=&quot; &lt;&lt;a &lt;&lt; &quot;\n&quot;;
	cout &lt;&lt;&quot;b=&quot; &lt;&lt;b &lt;&lt; &quot;\n\n&quot;;

funk (&amp;a,&amp;b);
	cout &lt;&lt;&quot;a=&quot; &lt;&lt;a &lt;&lt; &quot;\n&quot;;
	cout &lt;&lt;&quot;b=&quot; &lt;&lt;b &lt;&lt; &quot;\n&quot;;
	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1283942</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1283942</guid><dc:creator><![CDATA[Physikus]]></dc:creator><pubDate>Sun, 13 May 2007 11:13:30 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen deklarieren in C++ on Sun, 13 May 2007 11:17:02 GMT]]></title><description><![CDATA[<p>void func(int* a, int* b);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1283946</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1283946</guid><dc:creator><![CDATA[Cpt.Tanga]]></dc:creator><pubDate>Sun, 13 May 2007 11:17:02 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen deklarieren in C++ on Sun, 13 May 2007 12:32:03 GMT]]></title><description><![CDATA[<p>deine formatierung ist nebenbei auch bissel komisch...</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

using namespace std;

void funk (int *a,int *b){
    int temp =*a;
    *a=*b;
    *b=temp;
}

int main(int argc, char* argv[])
{
    int a=0;
    int b=0;
    cout &lt;&lt; &quot;geben sie zwei zahlen ein \n&quot;;
    cin &gt;&gt; a &gt;&gt; b;

    cout &lt;&lt;&quot;a=&quot; &lt;&lt;a &lt;&lt; &quot;\n&quot;;
    cout &lt;&lt;&quot;b=&quot; &lt;&lt;b &lt;&lt; &quot;\n\n&quot;;

    funk (&amp;a,&amp;b);
    cout &lt;&lt;&quot;a=&quot; &lt;&lt;a &lt;&lt; &quot;\n&quot;;
    cout &lt;&lt;&quot;b=&quot; &lt;&lt;b &lt;&lt; &quot;\n&quot;;

    return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1283996</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1283996</guid><dc:creator><![CDATA[Stelfer]]></dc:creator><pubDate>Sun, 13 May 2007 12:32:03 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen deklarieren in C++ on Sun, 13 May 2007 12:42:52 GMT]]></title><description><![CDATA[<p>hmm machs direkt mit template ^^</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

template&lt;typename T&gt;
void swap(T&amp; a, T&amp; b)
{
    T tmp = a;
    a = b;
    b = tmp;
}

int main()
{
    int a=0;
    int b=0;
    std::cout &lt;&lt; &quot;Geben Sie zwei zahlen ein: &quot; &lt;&lt; std::flush;
    std::cin &gt;&gt; a &gt;&gt; b;

    std::cout &lt;&lt; &quot;a= &quot; &lt;&lt; a &lt;&lt; std::endl;
    std::cout &lt;&lt; &quot;b= &quot; &lt;&lt; b &lt;&lt; std::endl&quot;;
    std::cout &lt;&lt; &quot;Swap!&quot; &lt;&lt; std::endl;
    swap(a, b);
    std::cout &lt;&lt; &quot;a= &quot; &lt;&lt; a &lt;&lt; std::endl;
    std::cout &lt;&lt; &quot;b= &quot; &lt;&lt; b &lt;&lt; std::endl;
}
</code></pre>
<p>?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1284007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1284007</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Sun, 13 May 2007 12:42:52 GMT</pubDate></item></channel></rss>