<?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 wird nicht erkannt andere aber ja]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mal wieder ein Problem und würde mich über eure Hilfe sehr freuen.<br />
Beachten wir mal nicht ob der code noch einfacher geht das ist jetzt egal.Auf jedenfall kommt folgender Fehler bei folgendem Code</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;

using namespace std;

int plus( int summand, int zweiter_summand)
{
    int summe;

    summe=summand+zweiter_summand;

    return summe;
}

int minus(int minuend, int zweiter_minuend)
{
    int differenz;

    differenz=minuend+zweiter_minuend;

    return differenz;
}

int mal(int faktor,int zweiter_faktor)
{
    int produkt;

    produkt=faktor*zweiter_faktor;

    return produkt;
}

float dividieren(int divisor, int zweiter_divisor)
{
    float qoutient;

    if(zweiter_divisor==0)
    {
        cout&lt;&lt;&quot;Leider darf nicht durch 0 geteilt werden&quot;;
    }
    else
    {
        qoutient=divisor/zweiter_divisor;
    }

    return qoutient;
}

int main()
{
    int abfrage,zahl1,zahl2;

    cout&lt;&lt;&quot;===================================&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;       Taschenrechnerprogramm      &quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;1. Addition&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;2. Subtrahieren&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;3. Multiplizieren&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;4. Dividieren&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;5. Ende&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;===================================&quot;&lt;&lt;endl;
    cout&lt;&lt;endl;
    cout&lt;&lt;&quot;Bitte Waehlen sie eine Variante aus&quot;&lt;&lt;endl;
    cin&gt;&gt;abfrage;

    do
    {
        switch(abfrage)
        {
            case 1:
            cin&gt;&gt;zahl1;
            cin&gt;&gt;zahl2;
            cout&lt;&lt;&quot;Die Summe aus &quot;&lt;&lt;zahl1&lt;&lt;&quot; und &quot;&lt;&lt;zahl2&lt;&lt;&quot; ist &quot;&lt;&lt;plus(zahl1,zahl2)&lt;&lt;endl;
            case 2:
            cin&gt;&gt;zahl1;
            cin&gt;&gt;zahl2;
            cout&lt;&lt;&quot;Die Differenz aus &quot;&lt;&lt;zahl1&lt;&lt;&quot; und &quot;&lt;&lt;zahl2&lt;&lt;&quot; ist &quot;&lt;&lt;minus(zahl1,zahl2)&lt;&lt;endl;
            case 3:
            cin&gt;&gt;zahl1;
            cin&gt;&gt;zahl2;
            cout&lt;&lt;&quot;Das Produkt aus &quot;&lt;&lt;zahl1&lt;&lt;&quot; und &quot;&lt;&lt;zahl2&lt;&lt;&quot; ist &quot;&lt;&lt;mal(zahl1,zahl2)&lt;&lt;endl;
            case 4:
            cin&gt;&gt;zahl1;
            cin&gt;&gt;zahl2;
            cout&lt;&lt;&quot;Der Quotient aus &quot;&lt;&lt;zahl1&lt;&lt;&quot; und &quot;&lt;&lt;zahl2&lt;&lt;&quot; ist &quot;&lt;&lt;dividieren(zahl1,zahl2)&lt;&lt;endl;
        }
    }while(abfrage!=5);
}
</code></pre>
<blockquote>
<p>r-normla.cpp:80: error: <code>plus' undeclared (first use this function) r-normla.cpp:80: error: (Each undeclared identifier is reported only once for each function it appears in.) r-normla.cpp:84: error:</code>minus' undeclared (first use this function)<br />
:: === Build finished: 3 errors, 0 warnings ===</p>
</blockquote>
<p>,so komischer weiße kommt der fehler nur bei den ersten beiden funktionen nur ich weiß nicht warum nur da... is voll komisch?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/185832/funktion-wird-nicht-erkannt-andere-aber-ja</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 06:02:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/185832.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 01 Jul 2007 22:58:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Funktion wird nicht erkannt andere aber ja on Sun, 01 Jul 2007 22:58:33 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe mal wieder ein Problem und würde mich über eure Hilfe sehr freuen.<br />
Beachten wir mal nicht ob der code noch einfacher geht das ist jetzt egal.Auf jedenfall kommt folgender Fehler bei folgendem Code</p>
<pre><code class="language-cpp">#include&lt;iostream&gt;

using namespace std;

int plus( int summand, int zweiter_summand)
{
    int summe;

    summe=summand+zweiter_summand;

    return summe;
}

int minus(int minuend, int zweiter_minuend)
{
    int differenz;

    differenz=minuend+zweiter_minuend;

    return differenz;
}

int mal(int faktor,int zweiter_faktor)
{
    int produkt;

    produkt=faktor*zweiter_faktor;

    return produkt;
}

float dividieren(int divisor, int zweiter_divisor)
{
    float qoutient;

    if(zweiter_divisor==0)
    {
        cout&lt;&lt;&quot;Leider darf nicht durch 0 geteilt werden&quot;;
    }
    else
    {
        qoutient=divisor/zweiter_divisor;
    }

    return qoutient;
}

int main()
{
    int abfrage,zahl1,zahl2;

    cout&lt;&lt;&quot;===================================&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;       Taschenrechnerprogramm      &quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;1. Addition&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;2. Subtrahieren&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;3. Multiplizieren&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;4. Dividieren&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;5. Ende&quot;&lt;&lt;endl;
    cout&lt;&lt;&quot;===================================&quot;&lt;&lt;endl;
    cout&lt;&lt;endl;
    cout&lt;&lt;&quot;Bitte Waehlen sie eine Variante aus&quot;&lt;&lt;endl;
    cin&gt;&gt;abfrage;

    do
    {
        switch(abfrage)
        {
            case 1:
            cin&gt;&gt;zahl1;
            cin&gt;&gt;zahl2;
            cout&lt;&lt;&quot;Die Summe aus &quot;&lt;&lt;zahl1&lt;&lt;&quot; und &quot;&lt;&lt;zahl2&lt;&lt;&quot; ist &quot;&lt;&lt;plus(zahl1,zahl2)&lt;&lt;endl;
            case 2:
            cin&gt;&gt;zahl1;
            cin&gt;&gt;zahl2;
            cout&lt;&lt;&quot;Die Differenz aus &quot;&lt;&lt;zahl1&lt;&lt;&quot; und &quot;&lt;&lt;zahl2&lt;&lt;&quot; ist &quot;&lt;&lt;minus(zahl1,zahl2)&lt;&lt;endl;
            case 3:
            cin&gt;&gt;zahl1;
            cin&gt;&gt;zahl2;
            cout&lt;&lt;&quot;Das Produkt aus &quot;&lt;&lt;zahl1&lt;&lt;&quot; und &quot;&lt;&lt;zahl2&lt;&lt;&quot; ist &quot;&lt;&lt;mal(zahl1,zahl2)&lt;&lt;endl;
            case 4:
            cin&gt;&gt;zahl1;
            cin&gt;&gt;zahl2;
            cout&lt;&lt;&quot;Der Quotient aus &quot;&lt;&lt;zahl1&lt;&lt;&quot; und &quot;&lt;&lt;zahl2&lt;&lt;&quot; ist &quot;&lt;&lt;dividieren(zahl1,zahl2)&lt;&lt;endl;
        }
    }while(abfrage!=5);
}
</code></pre>
<blockquote>
<p>r-normla.cpp:80: error: <code>plus' undeclared (first use this function) r-normla.cpp:80: error: (Each undeclared identifier is reported only once for each function it appears in.) r-normla.cpp:84: error:</code>minus' undeclared (first use this function)<br />
:: === Build finished: 3 errors, 0 warnings ===</p>
</blockquote>
<p>,so komischer weiße kommt der fehler nur bei den ersten beiden funktionen nur ich weiß nicht warum nur da... is voll komisch?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1316523</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1316523</guid><dc:creator><![CDATA[Firefighter]]></dc:creator><pubDate>Sun, 01 Jul 2007 22:58:33 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion wird nicht erkannt andere aber ja on Sun, 01 Jul 2007 23:08:29 GMT]]></title><description><![CDATA[<p>sind vielleicht reservierte namen oder so wenn du die funktionen umbenennst sollte es gehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1316524</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1316524</guid><dc:creator><![CDATA[Fire]]></dc:creator><pubDate>Sun, 01 Jul 2007 23:08:29 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion wird nicht erkannt andere aber ja on Mon, 02 Jul 2007 04:58:34 GMT]]></title><description><![CDATA[<p>nebenher: wenn minus, dann mach auch ein minus <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>
<pre><code>differenz=minuend+zweiter_minuend; //???????????
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1316553</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1316553</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Mon, 02 Jul 2007 04:58:34 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion wird nicht erkannt andere aber ja on Mon, 02 Jul 2007 05:15:51 GMT]]></title><description><![CDATA[<p>gibt plus und minus in std.</p>
<p>- nimm using std raus<br />
- oder pack deine plus/minus in nen eigenen namespace<br />
- oder sprich den globalen namespace in main() an (::plus / ::minus)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1316557</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1316557</guid><dc:creator><![CDATA[thordk]]></dc:creator><pubDate>Mon, 02 Jul 2007 05:15:51 GMT</pubDate></item><item><title><![CDATA[Reply to Funktion wird nicht erkannt andere aber ja on Mon, 02 Jul 2007 05:50:41 GMT]]></title><description><![CDATA[<p>Und vergess 'break' nicht bei deinen Cast-Zweigen.</p>
<p>Ps: Sag doch immer 'using namespace' bringt nur Probleme! :-]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1316566</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1316566</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Mon, 02 Jul 2007 05:50:41 GMT</pubDate></item></channel></rss>