<?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[Komische Fehlermeldung nach Funktionsprogrammierung]]></title><description><![CDATA[<p>Hallo liebe Gemeinde.</p>
<p>Ich habe folgenden Quellcode geschrieben:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;math.h&gt;
using namespace std;

float Add(float a, float b)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Addition!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; a &gt;&gt; b;
	float c = a + b;
	cout &lt;&lt; a &lt;&lt; &quot; + &quot; &lt;&lt; b &lt;&lt; &quot; = &quot; &lt;&lt; c &lt;&lt; endl;
	cout &lt;&lt; endl;
	return c;
}
float Sub(float d, float e)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Subtraktion!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; d &gt;&gt; e;
	float f = d - e;
	cout &lt;&lt; d &lt;&lt; &quot; - &quot; &lt;&lt; e &lt;&lt; &quot; = &quot; &lt;&lt; f &lt;&lt; endl;
	cout &lt;&lt; endl;
	return f;
}
float Mul(float g, float h)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Multiplikation!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; g &gt;&gt; h;
	float i = g*h;
	cout &lt;&lt; g &lt;&lt; &quot; * &quot; &lt;&lt; h &lt;&lt; &quot; = &quot; &lt;&lt; i &lt;&lt; endl;
	cout &lt;&lt; endl;
	return i;
}
float Div(float j, float k)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Division!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot; Zwei Zahlen bitte, jedoch darf der Zähler nicht 0 sein!&quot; &lt;&lt; endl;
	cin  &gt;&gt; j &gt;&gt; k;
	float l = j/k ;
	cout &lt;&lt; j &lt;&lt; &quot; / &quot; &lt;&lt; k &lt;&lt; &quot; = &quot; &lt;&lt; l &lt;&lt; endl;
	cout &lt;&lt; endl;
	return l;
}

float Wurzel(float m)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Quadratwurzel!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Eine Zahl bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; m;
	float n = sqrt (m);
	cout &lt;&lt; &quot;Ergebnis ist &quot; &lt;&lt; n &lt;&lt; endl;
	cout &lt;&lt; endl;
	return n;
}

int main()
{
	float a,b,c;
	float d,e,f;
	float g,h,i;
	float j,k,l;
	float m,n;

	cout &lt;&lt; &quot;Rechenoperationen!&quot; &lt;&lt; endl;

	c=Add(a,b);
	f=Sub(d,e);
	i=Mul(g,h);
	l=Div(j,k);
	n=Wurzel(m);
	return 0;
}
</code></pre>
<p>Beim Kompilieren kommt kein Fehler. Wenn ich jedoch auf &quot;Debugginng ohne Starten&quot; klicke, dann kommt die Meldung, dass die Variable b zwar initialisiert aber nicht verwendet wird. Hier ein Link mit Bild:</p>
<p><a href="http://www.elektronik-kompendium.de/forum/forum_entry.php?id=165569&amp;page=0&amp;order=time&amp;descasc=DESC&amp;category=all" rel="nofollow">http://www.elektronik-kompendium.de/forum/forum_entry.php?id=165569&amp;page=0&amp;order=time&amp;descasc=DESC&amp;category=all</a></p>
<p>Der Fehler kann aber nicht sein, da die Variable b doch in der Funktion &quot;Add&quot; verwendet wird, oder liege ich falsch??</p>
<p>Danke für die Antworten im Voraus.</p>
<p>Gruß</p>
<p>Max</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/301637/komische-fehlermeldung-nach-funktionsprogrammierung</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 08:29:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/301637.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 31 Mar 2012 15:06:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sat, 31 Mar 2012 15:06:38 GMT]]></title><description><![CDATA[<p>Hallo liebe Gemeinde.</p>
<p>Ich habe folgenden Quellcode geschrieben:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;math.h&gt;
using namespace std;

float Add(float a, float b)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Addition!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; a &gt;&gt; b;
	float c = a + b;
	cout &lt;&lt; a &lt;&lt; &quot; + &quot; &lt;&lt; b &lt;&lt; &quot; = &quot; &lt;&lt; c &lt;&lt; endl;
	cout &lt;&lt; endl;
	return c;
}
float Sub(float d, float e)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Subtraktion!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; d &gt;&gt; e;
	float f = d - e;
	cout &lt;&lt; d &lt;&lt; &quot; - &quot; &lt;&lt; e &lt;&lt; &quot; = &quot; &lt;&lt; f &lt;&lt; endl;
	cout &lt;&lt; endl;
	return f;
}
float Mul(float g, float h)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Multiplikation!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; g &gt;&gt; h;
	float i = g*h;
	cout &lt;&lt; g &lt;&lt; &quot; * &quot; &lt;&lt; h &lt;&lt; &quot; = &quot; &lt;&lt; i &lt;&lt; endl;
	cout &lt;&lt; endl;
	return i;
}
float Div(float j, float k)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Division!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot; Zwei Zahlen bitte, jedoch darf der Zähler nicht 0 sein!&quot; &lt;&lt; endl;
	cin  &gt;&gt; j &gt;&gt; k;
	float l = j/k ;
	cout &lt;&lt; j &lt;&lt; &quot; / &quot; &lt;&lt; k &lt;&lt; &quot; = &quot; &lt;&lt; l &lt;&lt; endl;
	cout &lt;&lt; endl;
	return l;
}

float Wurzel(float m)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Quadratwurzel!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Eine Zahl bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; m;
	float n = sqrt (m);
	cout &lt;&lt; &quot;Ergebnis ist &quot; &lt;&lt; n &lt;&lt; endl;
	cout &lt;&lt; endl;
	return n;
}

int main()
{
	float a,b,c;
	float d,e,f;
	float g,h,i;
	float j,k,l;
	float m,n;

	cout &lt;&lt; &quot;Rechenoperationen!&quot; &lt;&lt; endl;

	c=Add(a,b);
	f=Sub(d,e);
	i=Mul(g,h);
	l=Div(j,k);
	n=Wurzel(m);
	return 0;
}
</code></pre>
<p>Beim Kompilieren kommt kein Fehler. Wenn ich jedoch auf &quot;Debugginng ohne Starten&quot; klicke, dann kommt die Meldung, dass die Variable b zwar initialisiert aber nicht verwendet wird. Hier ein Link mit Bild:</p>
<p><a href="http://www.elektronik-kompendium.de/forum/forum_entry.php?id=165569&amp;page=0&amp;order=time&amp;descasc=DESC&amp;category=all" rel="nofollow">http://www.elektronik-kompendium.de/forum/forum_entry.php?id=165569&amp;page=0&amp;order=time&amp;descasc=DESC&amp;category=all</a></p>
<p>Der Fehler kann aber nicht sein, da die Variable b doch in der Funktion &quot;Add&quot; verwendet wird, oder liege ich falsch??</p>
<p>Danke für die Antworten im Voraus.</p>
<p>Gruß</p>
<p>Max</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197349</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197349</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sat, 31 Mar 2012 15:06:38 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sat, 31 Mar 2012 15:09:28 GMT]]></title><description><![CDATA[<p>Welchen Wert haben a und b in Zeile 72?<br />
Im Übrigen steht da, dass b verwendet wird ohne initialisiert zu sein. Lesen sollte man schon können. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197351</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197351</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Sat, 31 Mar 2012 15:09:28 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sat, 31 Mar 2012 15:10:02 GMT]]></title><description><![CDATA[<p>Die Werte von a und b sollen per Tastatur eingelsen werden können. So wie bei den anderen Funktionen auch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197353</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197353</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sat, 31 Mar 2012 15:10:02 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sat, 31 Mar 2012 15:27:23 GMT]]></title><description><![CDATA[<p>silent_max schrieb:</p>
<blockquote>
<p>Die Werte von a und b sollen per Tastatur eingelsen werden können. So wie bei den anderen Funktionen auch.</p>
</blockquote>
<p>Wozu übergibst du sie dann als Parameter?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197360</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197360</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Sat, 31 Mar 2012 15:27:23 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sat, 31 Mar 2012 15:38:11 GMT]]></title><description><![CDATA[<p>Weil es dann in der Funktion wie folgt heißt:</p>
<p>Error: Bezeichner &quot;&quot;a&quot;&quot; ist nicht definiert.</p>
<p>Sollte ich z. B. bei der Funktion Add es so schreiben:</p>
<pre><code class="language-cpp">float Add(float x, float y)
</code></pre>
<p>Oder wie würdest Du es machen??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197361</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197361</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sat, 31 Mar 2012 15:38:11 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sat, 31 Mar 2012 15:58:02 GMT]]></title><description><![CDATA[<p>Inzwischen sieht der Quellcode wie folgt aus:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;math.h&gt;
using namespace std;

float Add(float x, float y)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Addition!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; x &gt;&gt; y;
	float c = x + y;
	cout &lt;&lt; x &lt;&lt; &quot; + &quot; &lt;&lt; y &lt;&lt; &quot; = &quot; &lt;&lt; c &lt;&lt; endl;
	cout &lt;&lt; endl;
	return c;
}
float Sub(float x, float y)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Subtraktion!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; x &gt;&gt; y;
	float f = x - y;
	cout &lt;&lt; x &lt;&lt; &quot; - &quot; &lt;&lt; y &lt;&lt; &quot; = &quot; &lt;&lt; f &lt;&lt; endl;
	cout &lt;&lt; endl;
	return f;
}
float Mul(float x, float y)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Multiplikation!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; x &gt;&gt; y;
	float i = x*y;
	cout &lt;&lt; x &lt;&lt; &quot; * &quot; &lt;&lt; y &lt;&lt; &quot; = &quot; &lt;&lt; y &lt;&lt; endl;
	cout &lt;&lt; endl;
	return i;
}
float Div(float x, float y)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Division!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot; Zwei Zahlen bitte, jedoch darf der Zähler nicht 0 sein!&quot; &lt;&lt; endl;
	cin  &gt;&gt; x &gt;&gt; y;
	float l = x/y ;
	cout &lt;&lt; x &lt;&lt; &quot; / &quot; &lt;&lt; y &lt;&lt; &quot; = &quot; &lt;&lt; l &lt;&lt; endl;
	cout &lt;&lt; endl;
	return l;
}

float Wurzel(float x)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Quadratwurzel!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Eine Zahl bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; x;
	float n = sqrt (x);
	cout &lt;&lt; &quot;Ergebnis ist &quot; &lt;&lt; n &lt;&lt; endl;
	cout &lt;&lt; endl;
	return n;
}

int main()
{
	float a=0,b=0,c=0;
	float d=0,e=0,f=0;
	float g=0,h=0,i=0;
	float j=0,k=0,l=0;
	float m=0,n=0;

	cout &lt;&lt; &quot;Rechenoperationen!&quot; &lt;&lt; endl;

	c=Add(a,b);
	f=Sub(d,e);
	i=Mul(g,h);
	l=Div(j,k);
	n=Wurzel(m);
	return 0;
}
</code></pre>
<p>Und es kommt jedes Mal folgende Meldung:</p>
<p>Run Time Check Failure #3 - The variable 'b' is being used without initialized.</p>
<p>Die Meldung kommt für die Variablen b, e, h, k und m.</p>
<p>Ich komme einfach nicht darauf, was ich falsch gemacht habe.</p>
<p>Was ist mein Fehler? Bitte hilft mir.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197364</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197364</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sat, 31 Mar 2012 15:58:02 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sat, 31 Mar 2012 16:03:10 GMT]]></title><description><![CDATA[<p>Warum hast du das jetzt auf float geändert? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /><br />
Whatever, definiere die Variablen doch ganz einfach in der Funktion?</p>
<pre><code class="language-cpp">float add()
{
  float a;
  ..
  float b;
  ..
  return a + b;
}
</code></pre>
<p>Du scheinst mir ziemlich verwirrt zu sein..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197365</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197365</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Sat, 31 Mar 2012 16:03:10 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sat, 31 Mar 2012 16:28:00 GMT]]></title><description><![CDATA[<p>@ cooky451</p>
<p>Ich habe es wie Du gesagt hast, geändert, aber jetzt kommt folgende Fehlermeldung:</p>
<pre><code class="language-cpp">d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(77): error C2660: 'Add': Funktion akzeptiert keine 2 Argumente
d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(78): error C2660: 'Sub': Funktion akzeptiert keine 2 Argumente
d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(79): error C2660: 'Mul': Funktion akzeptiert keine 2 Argumente
d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(80): error C2660: 'Div': Funktion akzeptiert keine 2 Argumente
d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(81): error C2660: 'Wurzel': Funktion akzeptiert keine 1 Argumente
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2197373</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197373</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sat, 31 Mar 2012 16:28:00 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sat, 31 Mar 2012 16:39:52 GMT]]></title><description><![CDATA[<p>Du darfst dann doch keine Parameter mehr übergeben. Programmieren ist keine Magie. Mach erst mal eine einfache Funktion und überlege wie das alles zusammenhängt und was es bedeutet eine Variable zu definieren. So hat das keinen Sinn. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197378</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Sat, 31 Mar 2012 16:39:52 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 08:27:13 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;math.h&gt;
using namespace std;

float Add(float a, float b)
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Addition!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
    cin  &gt;&gt; a &gt;&gt; b;
    float c = a + b;
    cout &lt;&lt; a &lt;&lt; &quot; + &quot; &lt;&lt; b &lt;&lt; &quot; = &quot; &lt;&lt; c &lt;&lt; endl;
    cout &lt;&lt; endl;
    return c;
}
float Sub(float d, float e)
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Subtraktion!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
    cin  &gt;&gt; d &gt;&gt; e;
    float f = d - e;
    cout &lt;&lt; d &lt;&lt; &quot; - &quot; &lt;&lt; e &lt;&lt; &quot; = &quot; &lt;&lt; f &lt;&lt; endl;
    cout &lt;&lt; endl;
    return f;
}
float Mul(float g, float h)
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Multiplikation!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
    cin  &gt;&gt; g &gt;&gt; h;
    float i = g*h;
    cout &lt;&lt; g &lt;&lt; &quot; * &quot; &lt;&lt; h &lt;&lt; &quot; = &quot; &lt;&lt; i &lt;&lt; endl;
    cout &lt;&lt; endl;
    return i;
}
float Div(float j, float k)
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Division!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot; Zwei Zahlen bitte, jedoch darf der Zähler nicht 0 sein!&quot; &lt;&lt; endl;
    cin  &gt;&gt; j &gt;&gt; k;
    float l = j/k ;
    cout &lt;&lt; j &lt;&lt; &quot; / &quot; &lt;&lt; k &lt;&lt; &quot; = &quot; &lt;&lt; l &lt;&lt; endl;
    cout &lt;&lt; endl;
    return l;
}

float Wurzel(float m)
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Quadratwurzel!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Eine Zahl bitte!&quot; &lt;&lt; endl;
    cin  &gt;&gt; m;
    float n = sqrt (m);
    cout &lt;&lt; &quot;Ergebnis ist &quot; &lt;&lt; n &lt;&lt; endl;
    cout &lt;&lt; endl;
    return n;
}

int main()
{
    float a=0,b=0,c=0;
    float d=0,e=0,f=0;
    float g=0,h=0,i=0;
    float j=0,k=0,l=0;
    float m=0,n=0;

    cout &lt;&lt; &quot;Rechenoperationen!&quot; &lt;&lt; endl;

    c=Add(a,b);
    f=Sub(d,e);
    i=Mul(g,h);
    l=Div(j,k);
    n=Wurzel(m);
    return 0;
}
</code></pre>
<p>Komischerweise jetzt funktioniert es.</p>
<p>Kann mir einer von euch erklären, warum die Variablen a bis n (in der main) initialisiert werden müssen, wenn sie bei den einzelnen Funktionen schon deklariert werden? Das ist das Einzigste, was ich noch nicht kapiert habe.</p>
<p>Danke für die Antworten im Voraus.</p>
<p>Gruß</p>
<p>Max</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197516</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197516</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sun, 01 Apr 2012 08:27:13 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 08:37:10 GMT]]></title><description><![CDATA[<p>Das ist definitiv nicht das einzige, was du noch nicht verstanden hast. Es ist immer noch völlig sinnlos die Variablen als Parameter zu übergeben. (Und du darfst sie nicht uninitialisiert übergeben, weil man nicht von uninitialisierten Variablen lesen darf, und beim Übergeben wird ihr Wert kopiert, also ausgelesen.)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197519</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Sun, 01 Apr 2012 08:37:10 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 09:08:04 GMT]]></title><description><![CDATA[<p>Wie würdest es denn Du umsetzen?</p>
<p>Weil ich habe jetzt aus jedem Funktionskopf die Parameter, die übergeben werden sollen, entnommen. Siehe hier:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;math.h&gt;
using namespace std;

float Add()
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Addition!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	float a, b;
    cin  &gt;&gt; a &gt;&gt; b;
    float c = a + b;
    cout &lt;&lt; a &lt;&lt; &quot; + &quot; &lt;&lt; b &lt;&lt; &quot; = &quot; &lt;&lt; c &lt;&lt; endl;
    cout &lt;&lt; endl;
    return c;
}
float Sub()
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Subtraktion!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	float d, e;
    cin  &gt;&gt; d &gt;&gt; e;
    float f = d - e;
    cout &lt;&lt; d &lt;&lt; &quot; - &quot; &lt;&lt; e &lt;&lt; &quot; = &quot; &lt;&lt; f &lt;&lt; endl;
    cout &lt;&lt; endl;
    return f;
}
float Mul()
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Multiplikation!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	float g, h;
    cin  &gt;&gt; g &gt;&gt; h;
    float i = g*h;
    cout &lt;&lt; g &lt;&lt; &quot; * &quot; &lt;&lt; h &lt;&lt; &quot; = &quot; &lt;&lt; i &lt;&lt; endl;
    cout &lt;&lt; endl;
    return i;
}
float Div()
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Division!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot; Zwei Zahlen bitte, jedoch darf der Zähler nicht 0 sein!&quot; &lt;&lt; endl;
    cin  &gt;&gt; j &gt;&gt; k;
	float j, k;
    float l = j/k ;
    cout &lt;&lt; j &lt;&lt; &quot; / &quot; &lt;&lt; k &lt;&lt; &quot; = &quot; &lt;&lt; l &lt;&lt; endl;
    cout &lt;&lt; endl;
    return l;
}

float Wurzel()
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Quadratwurzel!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Eine Zahl bitte!&quot; &lt;&lt; endl;
	float m;
    cin  &gt;&gt; m;
    float n = sqrt (m);
    cout &lt;&lt; &quot;Ergebnis ist &quot; &lt;&lt; n &lt;&lt; endl;
    cout &lt;&lt; endl;
    return n;
}

int main()
{
    float a=0,b=0,c=0;
    float d=0,e=0,f=0;
    float g=0,h=0,i=0;
    float j=0,k=0,l=0;
    float m=0,n=0;

    cout &lt;&lt; &quot;Rechenoperationen!&quot; &lt;&lt; endl;

    c=Add(a,b);
    f=Sub(d,e);
    i=Mul(g,h);
    l=Div(j,k);
    n=Wurzel(m);
    return 0;
}
</code></pre>
<p>Dabei kam folgende Fehlermeldung:</p>
<pre><code class="language-cpp">d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(47): error C2065: 'j': nichtdeklarierter Bezeichner
d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(47): error C2065: 'k': nichtdeklarierter Bezeichner
d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(78): error C2660: 'Add': Funktion akzeptiert keine 2 Argumente
d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(79): error C2660: 'Sub': Funktion akzeptiert keine 2 Argumente
d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(80): error C2660: 'Mul': Funktion akzeptiert keine 2 Argumente
d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(81): error C2660: 'Div': Funktion akzeptiert keine 2 Argumente
d:\sebastian\desktop\lernen für dvt\visual studio 2010\projects\cpp - programmierung\eigene übung 034 - rechenoperationen\rechenoperationen.cpp(82): error C2660: 'Wurzel': Funktion akzeptiert keine 1 Argumente
</code></pre>
<p>Wenn es darum geht, dass ich noch nicht so viel Erfahrung mit C++ Programmierung habe, dann tut es mir leid, dass ich die ersten Schritte mache, die jeder Programmier einmal getan hat.</p>
<p>Für Vorschläge, Anregungen und dergleichen bin ich offen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197524</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197524</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sun, 01 Apr 2012 09:08:04 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 09:13:34 GMT]]></title><description><![CDATA[<p>In Div() versuchst du mit j und k zu arbeiten bevor du sie definierst, wie soll das denn funktionieren?</p>
<p>Und warum übergibst du Parameter an Funktionen die keine wollen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Mal überlegt die Compilerfehler auch zu lesen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197526</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197526</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Sun, 01 Apr 2012 09:13:34 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 09:35:55 GMT]]></title><description><![CDATA[<p>cooky451 schrieb:</p>
<blockquote>
<p>In Div() versuchst du mit j und k zu arbeiten bevor du sie definierst, wie soll das denn funktionieren?</p>
<p>Und warum übergibst du Parameter an Funktionen die keine wollen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
<p>Mal überlegt die Compilerfehler auch zu lesen?</p>
</blockquote>
<p>Wie meinst Du das mit &quot;Und warum übergibst Du Parameter an Funktionen die keine wollen&quot;??</p>
<p>Ich verstehe echt nicht, was Du damit meinst?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197534</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197534</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sun, 01 Apr 2012 09:35:55 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 09:54:07 GMT]]></title><description><![CDATA[<p>Die Funktion heißt &quot;float Sub()&quot;, diese Funktion nimmt keine Parameter entgegen.<br />
Aufrufen tust du sie mit &quot;f=Sub(d,e);&quot; - du übergibst die beiden Parameter d und e. Der Compiler versucht deshalb eine Funktion zu finden &quot;float Sub(float, float)&quot; - die gibt es nicht! Er findet nur &quot;float Sub()&quot;, deshalb die Meldung &quot;error C2660: 'Sub': Funktion akzeptiert keine 2 Argumente&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197539</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197539</guid><dc:creator><![CDATA[arghonaut]]></dc:creator><pubDate>Sun, 01 Apr 2012 09:54:07 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 11:19:15 GMT]]></title><description><![CDATA[<p>Also so wie ich dich verstanden habe, sollte beispielsweise der Quellcode für die Funktion Sub so heißen</p>
<p>float Sub(float, float)<br />
{<br />
cout &lt;&lt; endl;<br />
cout &lt;&lt; &quot;Subtraktion!&quot; &lt;&lt; endl;<br />
cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;<br />
cin &gt;&gt; d &gt;&gt; e;<br />
float f = d - e;<br />
cout &lt;&lt; d &lt;&lt; &quot; - &quot; &lt;&lt; e &lt;&lt; &quot; = &quot; &lt;&lt; f &lt;&lt; endl;<br />
cout &lt;&lt; endl;<br />
return f;<br />
}</p>
<p>Bei mir kommt jedoch, wenn ich das mache, unter d und e ein roter Strich darunter mit der Meldung &quot;Error: Der Bezeichner &quot;&quot;d&quot;&quot; ist definiert.&quot;</p>
<p>Deswegen habe ich d und e im Funktionskopf gelassen, da es jetzt so funktioniert, wie ich es will.</p>
<p>Hier der Quellcode:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;math.h&gt;
using namespace std;

float Add(float a, float b)
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Addition!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
    cin  &gt;&gt; a &gt;&gt; b;
    float c = a + b;
    cout &lt;&lt; a &lt;&lt; &quot; + &quot; &lt;&lt; b &lt;&lt; &quot; = &quot; &lt;&lt; c &lt;&lt; endl;
    cout &lt;&lt; endl;
    return c;
}
float Sub(float d, float e)
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Subtraktion!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
    cin  &gt;&gt; d &gt;&gt; e;
    float f = d - e;
    cout &lt;&lt; d &lt;&lt; &quot; - &quot; &lt;&lt; e &lt;&lt; &quot; = &quot; &lt;&lt; f &lt;&lt; endl;
    cout &lt;&lt; endl;
    return f;
}
float Mul(float g, float h)
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Multiplikation!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
    cin  &gt;&gt; g &gt;&gt; h;
    float i = g*h;
    cout &lt;&lt; g &lt;&lt; &quot; * &quot; &lt;&lt; h &lt;&lt; &quot; = &quot; &lt;&lt; i &lt;&lt; endl;
    cout &lt;&lt; endl;
    return i;
}
float Div(float j, float k)
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Division!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot; Zwei Zahlen bitte, jedoch darf der Zähler nicht 0 sein!&quot; &lt;&lt; endl;
    cin  &gt;&gt; j &gt;&gt; k;
    float l = j/k ;
    cout &lt;&lt; j &lt;&lt; &quot; / &quot; &lt;&lt; k &lt;&lt; &quot; = &quot; &lt;&lt; l &lt;&lt; endl;
    cout &lt;&lt; endl;
    return l;
}
float Potenz(float o, float p)
{
	cout &lt;&lt; endl;
	cout &lt;&lt; &quot;Potenz!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	cin  &gt;&gt; o &gt;&gt; p;
	float q=pow(o,p);
	cout &lt;&lt; &quot;Ergebnis ist &quot; &lt;&lt;	q &lt;&lt; endl;
	return q;
}
float Wurzel(float )
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Quadratwurzel!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Eine Zahl bitte!&quot; &lt;&lt; endl;
    cin  &gt;&gt; m;
    float n = sqrt (m);
    cout &lt;&lt; &quot;Ergebnis ist &quot; &lt;&lt; n &lt;&lt; endl;
    cout &lt;&lt; endl;
    return n;
}

int main()
{
    float a=0,b=0,c=0;
    float d=0,e=0,f=0;
    float g=0,h=0,i=0;
    float j=0,k=0,l=0;
    float m=0,n=0;
	float o=0,p=0,q=0;

    cout &lt;&lt; &quot;Rechenoperationen!&quot; &lt;&lt; endl;

    c = Add(a,b);
    f = Sub(d,e);
    i = Mul(g,h);
    l = Div(j,k);
	q = Potenz(o,p);
    n = Wurzel(m);

    return 0;
}
</code></pre>
<p>Wenn Du noch nicht überzeugt bist, dann zeige mir bitte einen alternativen Code. Wie schon gesagt, ich bin für jeden Ratschlag offen.</p>
<p>Gruß<br />
Max</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197579</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sun, 01 Apr 2012 11:19:15 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 11:35:42 GMT]]></title><description><![CDATA[<p>silent_max schrieb:</p>
<blockquote>
<p>Wie schon gesagt, ich bin für jeden Ratschlag offen.</p>
</blockquote>
<p>Es wurde bereits alles geschrieben. Die Funktionen sollten keine Parameter haben. In main müsstest du eigentlich keine Variable deklarieren, die Funktionen können allesamt auf einen Returnwert verzichten.</p>
<pre><code class="language-cpp">int main()
{
  Add();
  Sub();
  Mul();
  Div();
  Potenz();
  Wurzel();
}
</code></pre>
<p>Mehr ist nicht nötig.</p>
<p>Mich würde mal interessieren, was DVT ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197581</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197581</guid><dc:creator><![CDATA[schnörkelloser]]></dc:creator><pubDate>Sun, 01 Apr 2012 11:35:42 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 11:39:06 GMT]]></title><description><![CDATA[<p>silent_max schrieb:</p>
<blockquote>
<p>Also so wie ich dich verstanden habe, sollte beispielsweise der Quellcode für die Funktion Sub so heißen</p>
<pre><code class="language-cpp">float Sub(float, float)
{
    cout &lt;&lt; endl;
    cout &lt;&lt; &quot;Subtraktion!&quot; &lt;&lt; endl;
    cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
    cin  &gt;&gt; d &gt;&gt; e;
    float f = d - e;
    cout &lt;&lt; d &lt;&lt; &quot; - &quot; &lt;&lt; e &lt;&lt; &quot; = &quot; &lt;&lt; f &lt;&lt; endl;
    cout &lt;&lt; endl;
    return f;
}
</code></pre>
</blockquote>
<p>Nein! Wieso denn immer wieder dahin zurück! Wieso nicht einfach die Funktion aufrufen, die du auch anbietest:</p>
<pre><code class="language-cpp">float Sub() // &lt;- Sub() OHNE Parameter!
{
    // Implementierung wie gahabt
}

int main() {
    float ergebnis = Sub(); // &lt;- angepasster Aufruf - Sub() erwartet keine Parameter!
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2197584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197584</guid><dc:creator><![CDATA[arghonaut]]></dc:creator><pubDate>Sun, 01 Apr 2012 11:39:06 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 11:53:04 GMT]]></title><description><![CDATA[<p>So langsam glaube ich das soll ein verfrühter Aprilscherz sein. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197590</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197590</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Sun, 01 Apr 2012 11:53:04 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 12:04:35 GMT]]></title><description><![CDATA[<p>Hast Du es wie folgt gemeint??</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

float Sub()
{
	cout &lt;&lt; &quot;\tSubtraktion!&quot; &lt;&lt; endl;
	cout &lt;&lt; &quot;Zwei Zahlen bitte!&quot; &lt;&lt; endl;
	float a, b;
	cin  &gt;&gt; a &gt;&gt; b;
	return (a -b);
}

int main()
{
	float Ergebnis = Sub();
	cout &lt;&lt; &quot;Ergebnis der Subtraktion: &quot; &lt;&lt; Ergebnis &lt;&lt; endl;
	return 0;
}
</code></pre>
<p>Fass es jetzt bitte nicht falsch auf, aber da muss ich erst nachdenken, wo da ein sinnvoller Unterschied ist...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197595</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sun, 01 Apr 2012 12:04:35 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 12:33:48 GMT]]></title><description><![CDATA[<p>silent_max schrieb:</p>
<blockquote>
<p>Fass es jetzt bitte nicht falsch auf, aber da muss ich erst nachdenken, wo da ein sinnvoller Unterschied ist...</p>
</blockquote>
<p>Welcher Unterschied? Das &quot;Sub(x,y)&quot; vs &quot;Sub()&quot;, oder warum deine Implementierung von &quot;Sub(float, float)&quot; nur &quot;Sub&quot;optimal ist, und wie sie sich von der mit lokalen Parametern unterscheidet?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197603</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197603</guid><dc:creator><![CDATA[arghonaut]]></dc:creator><pubDate>Sun, 01 Apr 2012 12:33:48 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 12:41:54 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/25760">@cooky451</a>: Das ist kein verfrühter Aprilscherz, ganz und gar nicht.</p>
<p>Ich bin halt noch nicht so fit wie ihr in C++ Programmierung. Bloß ich möchte es lernen.</p>
<p>Ich möchte euch nicht um Gnade erbitten, aber bitte denkt daran, jeder fängt einmal klein an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197607</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sun, 01 Apr 2012 12:41:54 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 12:45:49 GMT]]></title><description><![CDATA[<p>Also ja, jeder fängt mal klein an, aber das ist schon extrem. Wenn du eine Funktion foo hast, und diese Funktion keine Parameter erwartet, kannst du sie doch nicht mit Parametern aufrufen. Was daran kann man bitte nicht verstehen?</p>
<pre><code class="language-cpp">void foo()
{
}

int main()
{
  foo(5); // :-1: 
  foo(5, 6, 7); // :-1: 
  foo(); // :+1: 
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2197609</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197609</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Sun, 01 Apr 2012 12:45:49 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 12:58:10 GMT]]></title><description><![CDATA[<p>cooky451 schrieb:</p>
<blockquote>
<p>Also ja, jeder fängt mal klein an, aber das ist schon extrem. Wenn du eine Funktion foo hast, und diese Funktion keine Parameter erwartet, kannst du sie doch nicht mit Parametern aufrufen. Was daran kann man bitte nicht verstehen?</p>
<pre><code class="language-cpp">void foo()
{
}

int main()
{
  foo(5); // :-1: 
  foo(5, 6, 7); // :-1: 
  foo(); // :+1: 
}
</code></pre>
</blockquote>
<p>Ich verstehe einfach nicht den Unterschied zwischen den Funktionen, die Parameter erwarten und Funktionen, die keine Parameter erwartet? Wo ist da der Unterschied?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197614</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sun, 01 Apr 2012 12:58:10 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 13:12:19 GMT]]></title><description><![CDATA[<p>silent_max schrieb:</p>
<blockquote>
<p>Ich verstehe einfach nicht den Unterschied zwischen den Funktionen, die Parameter erwarten und Funktionen, die keine Parameter erwartet? Wo ist da der Unterschied?</p>
</blockquote>
<p>Die einen erwarten Parameter und die anderen nicht... ich geb's auf..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197620</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197620</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Sun, 01 Apr 2012 13:12:19 GMT</pubDate></item><item><title><![CDATA[Reply to Komische Fehlermeldung nach Funktionsprogrammierung on Sun, 01 Apr 2012 13:37:08 GMT]]></title><description><![CDATA[<p>Bitte schreib je ein Beispiel ... Dann kapier ich es.</p>
<p>Weil in dem Skript, das ich verwende, wird genau das Gegenteil geschrieben wie Du es mir beibringen willst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2197627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2197627</guid><dc:creator><![CDATA[silent_max]]></dc:creator><pubDate>Sun, 01 Apr 2012 13:37:08 GMT</pubDate></item></channel></rss>