<?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[Hilfe bei Rechner (C++) x.x [Funktionen]]]></title><description><![CDATA[<p>Hio Community</p>
<p>Ich hab ein großes Prob <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f623.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--persevering_face"
      title="&gt;.&lt;"
      alt="😣"
    /></p>
<p>Ich mach nen Rechner mit Funktionen nur will der ned funktionieren.</p>
<p>FEHLER : undeclared &quot;a&quot;.&quot;b&quot; etc</p>
<p>Ab den ersten scanf Befehl fürs Wurzel rechnen kommt dieser Fehler x.x</p>
<p>Obwohl ich doch alle Variablen declarierd habe x.x</p>
<pre><code class="language-cpp">#include &lt;math.h&gt;
#include &lt;cstdlib&gt;
#include &lt;iostream&gt;

using namespace std;

char auswahl;
float ergebnis;
void wurz(float a);
void addi(float b,float c);
void divi(float d,float e);
void subt(float f,float g);
void mult(float h,float i);

int main(int argc, char *argv[])
{
     printf(&quot;*------------------------------------------------------------------------------*\n\n&quot;); 
     printf(&quot;                               *Taschenrechner*                                 \n\n&quot;);
     printf(&quot;\t(1) Wurzel\n\n&quot;);
     printf(&quot;\t(2) Addieren\n\n&quot;);
     printf(&quot;\t(3) Dividieren\n\n&quot;);
     printf(&quot;\t(4) Subtrahieren\n\n&quot;);
     printf(&quot;\t(5) Multiplizieren\n&quot;);
     printf(&quot;\n\n*------------------------------------------------------------------------------*&quot;);
     printf(&quot;\n\n\t        Geben sie eine Zahl zum jeweiligen Operator ein !                     &quot;);
     printf(&quot;\n\n\t -&gt; &quot;);
     scanf(&quot;%d&quot;,&amp;auswahl);
     printf(&quot;\n\n*------------------------------------------------------------------------------*&quot;);
     if(auswahl == 1)
     {
          printf(&quot;\n\n\t                   Sie haben Wurzel gew\x84hlt !                        &quot;);
          printf(&quot;\n\n\n\t\tZahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;a);
          ergebnis = sqrt(a);
          wurz();
     }
     else if(auswahl == 2)
     {
          printf(&quot;\n\n\t                   Sie haben Addieren gew\x84hlt !                       &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;b);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;c);
          ergebnis = b + c;
          addi();
     }
     else if(auswahl == 3)
     {
          printf(&quot;\n\n\t                 Sie haben Dividieren gew\x84hlt !                       &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;d);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;e);
          ergebnis = d / e;
          divi();
     }
     else if(auswahl == 4)
     {
          printf(&quot;\n\n\t                Sie haben Subtrahieren gew\x84hlt !                      &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;f);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;g);
          ergebnis = f - g;
          subt();
     }
     else if(auswahl == 5)
     {
          printf(&quot;\n\n\t               Sie haben Multiplizieren gew\x84hlt !                     &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;h);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;i);
          ergebnis = h * i;
          mult(); 
     }
     system(&quot;PAUSE&quot;);
     return EXIT_SUCCESS;
}

void wurz(float a)
{
     printf(&quot;Das Ergebnis ist : &amp;d&quot;,&amp;ergebnis);
}

void addi(float b,float c)
{
     printf(&quot;Das Ergebnis ist : &amp;d&quot;,&amp;ergebnis);
}

void divi(float d,float e)
{
     printf(&quot;Das Ergebnis ist : &amp;d&quot;,&amp;ergebnis);
}

void subt(float f,float g)
{
     printf(&quot;Das Ergebnis ist : &amp;d&quot;,&amp;ergebnis);
}

void mult(float h,float i)
{
     printf(&quot;Das Ergebnis ist : &amp;d&quot;,&amp;ergebnis);
}
</code></pre>
<p>Pls help me</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/235730/hilfe-bei-rechner-c-x-x-funktionen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 04:07:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/235730.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Mar 2009 18:14:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 18:16:22 GMT]]></title><description><![CDATA[<p>Hio Community</p>
<p>Ich hab ein großes Prob <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f623.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--persevering_face"
      title="&gt;.&lt;"
      alt="😣"
    /></p>
<p>Ich mach nen Rechner mit Funktionen nur will der ned funktionieren.</p>
<p>FEHLER : undeclared &quot;a&quot;.&quot;b&quot; etc</p>
<p>Ab den ersten scanf Befehl fürs Wurzel rechnen kommt dieser Fehler x.x</p>
<p>Obwohl ich doch alle Variablen declarierd habe x.x</p>
<pre><code class="language-cpp">#include &lt;math.h&gt;
#include &lt;cstdlib&gt;
#include &lt;iostream&gt;

using namespace std;

char auswahl;
float ergebnis;
void wurz(float a);
void addi(float b,float c);
void divi(float d,float e);
void subt(float f,float g);
void mult(float h,float i);

int main(int argc, char *argv[])
{
     printf(&quot;*------------------------------------------------------------------------------*\n\n&quot;); 
     printf(&quot;                               *Taschenrechner*                                 \n\n&quot;);
     printf(&quot;\t(1) Wurzel\n\n&quot;);
     printf(&quot;\t(2) Addieren\n\n&quot;);
     printf(&quot;\t(3) Dividieren\n\n&quot;);
     printf(&quot;\t(4) Subtrahieren\n\n&quot;);
     printf(&quot;\t(5) Multiplizieren\n&quot;);
     printf(&quot;\n\n*------------------------------------------------------------------------------*&quot;);
     printf(&quot;\n\n\t        Geben sie eine Zahl zum jeweiligen Operator ein !                     &quot;);
     printf(&quot;\n\n\t -&gt; &quot;);
     scanf(&quot;%d&quot;,&amp;auswahl);
     printf(&quot;\n\n*------------------------------------------------------------------------------*&quot;);
     if(auswahl == 1)
     {
          printf(&quot;\n\n\t                   Sie haben Wurzel gew\x84hlt !                        &quot;);
          printf(&quot;\n\n\n\t\tZahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;a);
          ergebnis = sqrt(a);
          wurz();
     }
     else if(auswahl == 2)
     {
          printf(&quot;\n\n\t                   Sie haben Addieren gew\x84hlt !                       &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;b);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;c);
          ergebnis = b + c;
          addi();
     }
     else if(auswahl == 3)
     {
          printf(&quot;\n\n\t                 Sie haben Dividieren gew\x84hlt !                       &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;d);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;e);
          ergebnis = d / e;
          divi();
     }
     else if(auswahl == 4)
     {
          printf(&quot;\n\n\t                Sie haben Subtrahieren gew\x84hlt !                      &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;f);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;g);
          ergebnis = f - g;
          subt();
     }
     else if(auswahl == 5)
     {
          printf(&quot;\n\n\t               Sie haben Multiplizieren gew\x84hlt !                     &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;h);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;i);
          ergebnis = h * i;
          mult(); 
     }
     system(&quot;PAUSE&quot;);
     return EXIT_SUCCESS;
}

void wurz(float a)
{
     printf(&quot;Das Ergebnis ist : &amp;d&quot;,&amp;ergebnis);
}

void addi(float b,float c)
{
     printf(&quot;Das Ergebnis ist : &amp;d&quot;,&amp;ergebnis);
}

void divi(float d,float e)
{
     printf(&quot;Das Ergebnis ist : &amp;d&quot;,&amp;ergebnis);
}

void subt(float f,float g)
{
     printf(&quot;Das Ergebnis ist : &amp;d&quot;,&amp;ergebnis);
}

void mult(float h,float i)
{
     printf(&quot;Das Ergebnis ist : &amp;d&quot;,&amp;ergebnis);
}
</code></pre>
<p>Pls help me</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674790</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674790</guid><dc:creator><![CDATA[DarkDagon]]></dc:creator><pubDate>Thu, 05 Mar 2009 18:16:22 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 18:40:37 GMT]]></title><description><![CDATA[<p>Das ist kein mathematisches Problem, sondern hat was mit Programmierung zu tun. Dein Code sieht zwar eher nach C aus, aber da Du anscheinend C++ programmieren möchtest schiebe ich Dich mal ins C++-Forum.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674814</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674814</guid><dc:creator><![CDATA[Jester]]></dc:creator><pubDate>Thu, 05 Mar 2009 18:40:37 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 18:40:48 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-1581.html" rel="nofollow">Jester</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-43.html" rel="nofollow">Mathematik</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674815</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674815</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Thu, 05 Mar 2009 18:40:48 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 18:47:56 GMT]]></title><description><![CDATA[<p>1. Das soll C++ sein?<br />
&lt;math.h&gt; -&gt; C Header<br />
&lt;cstdlib&gt; -&gt; ok C++ Header<br />
&lt;iostream&gt; -&gt; ok C++<br />
using namespace std; -&gt; ok C++<br />
ehm ... Rest ist C.</p>
<p>2. Zum Beispiel Zeile 33. Wo soll dieses <code>a</code> deklariert sein?</p>
<p>3. Du solltest dir ein vernünftiges C++ Buch kaufen. Das ist sogar für C in C++ schlecht programmiert. Funktionen haben zum Beispiel Rückgabemöglichkeiten. Und wenn man vernünftig C++ oder C lernt, dann lernt man dies gleich zusammen mit den Funktionen. Und es ist halt eben so gut wie kein C++.<br />
Empfehlungen:<br />
- C++ Primer<br />
- Thinking in C++ 1 &amp; 2</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674821</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Thu, 05 Mar 2009 18:47:56 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:06:46 GMT]]></title><description><![CDATA[<p>Schön und toll</p>
<p>Nur ich lerne das in der Schule x.x</p>
<p>Und ich wollte ja wissen wie ich das in Zeile 33 deklariere soll x.x</p>
<p>Aja und ich muss das mit Funktionen machen was ziemlich blöd ist ...</p>
<p>P.S : Sry das ich in den falschen Bereich gepostet hatte x.x</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674871</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674871</guid><dc:creator><![CDATA[DarkDagon]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:06:46 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:06:58 GMT]]></title><description><![CDATA[<p>Zu Viele x.x Ahh ich sterbe.<br />
Scherz bei Seite. Was willst du da deklarieren das ist doch eine C Funktion zum einlesen irgendwelcher Daten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674877</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674877</guid><dc:creator><![CDATA[Firefighter]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:06:58 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:11:10 GMT]]></title><description><![CDATA[<p>Nunja die cpp lässt sich ned complimieren x.x</p>
<p>Ich erkläre mal :</p>
<p>Das Programm soll &quot;!immer!&quot; in den Funktionen das Ergebnis ausgeben x.x</p>
<p>Leider funktioniert das &quot;a&quot; bei den &quot;scanf&quot; Befehl nicht da es als undeklariert ausgegeben wird x.x</p>
<p>Und zwar das in ZEILE 33 das &quot;,&amp;a); !</p>
<p>Wenn man die Zahlen eingibt sollen sie durch die funktion das Ergebnis ausgegeben werden x.x</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674879</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674879</guid><dc:creator><![CDATA[DarkDagon]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:11:10 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:18:30 GMT]]></title><description><![CDATA[<p>Kann mir mal einer erklären, was zum Teufel &quot;x.x&quot; heißen soll?! Ist das ein neues Satzendezeichen? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Btw, wenn keine Variable a existiert, kannst du nunmal keine Variable a mit einem Wert füllen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674886</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674886</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:18:30 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:20:41 GMT]]></title><description><![CDATA[<p>das x.x heißt bei mir verzeifelt</p>
<p>und dann muss doch was falsch sein wenn cih den wert a nich füllen kann !</p>
<p>Kann mir vllt wer meinen Code editieren ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674890</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674890</guid><dc:creator><![CDATA[DarkDagon]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:20:41 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:28:56 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/16702">@_matze</a>,<br />
Tz, Banause, kennst nicht mal dieses Smiley. Das sind durchgekreuzte Augen. Verzweifelt, tot, ohnmächtig oder ähnliches <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>DarkDagon schrieb:</p>
<blockquote>
<p>und dann muss doch was falsch sein wenn cih den wert a nich füllen kann !</p>
</blockquote>
<p>Es existiert gar keine Variable a in diesem Scope. Du hast nirgends eine Variable a deklariert, welche benutzt werden könnte.<br />
Ich glaube du solltest nochmals die Grundlagen durcharbeiten, welche dir der Lehrer sicher irgendwo gegeben hat.</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674898</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674898</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:28:56 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:30:53 GMT]]></title><description><![CDATA[<p>Dravere schrieb:</p>
<blockquote>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/16702">@_matze</a>,<br />
Tz, Banause, kennst nicht mal dieses Smiley.</p>
</blockquote>
<p>Nee, kenn ich nicht. Muss ich mich jetzt schämen? <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/1674899</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674899</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:30:53 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:34:42 GMT]]></title><description><![CDATA[<p>Könnt iht mit mir ned einfach den Fehler sagen x.x ?</p>
<p>Und Rechnungen wie Formeln haben wir nicht gemacht mit Funktionen .</p>
<p>P.S : Vllt ne Seite worauf ich dann auf den Fehler komme oder so bitttttteeee</p>
<p>P.S.S : Vielen DANK auch allen und besonders (helferlein).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674900</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674900</guid><dc:creator><![CDATA[DarkDagon]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:34:42 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:32:55 GMT]]></title><description><![CDATA[<p>Normalerweise verlagert man das berechnen in die entsprechenden funktionen.<br />
das ausgeben kommt aber grade _nicht_ in die funktion. diese ist _nur_ für<br />
das berechnen zuständig. natürlich kennt er nicht die variablen die du in der<br />
funktion deklarierst, dafür brauchst du temporäre variablen als zwischenspeicher.<br />
die variable &quot;ergebnis&quot; brauchst du nicht</p>
<p>ich geb dir mal ein beispiel an der &quot;addi&quot; funktion:</p>
<pre><code class="language-cpp">else if(auswahl == 2)
{
    float zahl1, zahl2;
    printf(&quot;\n\n\t                   Sie haben Addieren gew\x84hlt !                       &quot;);
    printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
    scanf(&quot;%d&quot;,&amp;zahl1);
    printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
    scanf(&quot;%d&quot;,&amp;zahl2);
    printf(&quot;Das Ergebnis ist : &amp;d&quot;, addi(zahl1, zahl2)); // keine addresse verwenden! (&amp;)
    addi();
}
float addi(float a, float b)
{
     return a + b;
}
</code></pre>
<p>gewöhn dir bitte das x.x in jedem post ab. einmal ist ok aber andauernt? <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>
<p>und in C++ nutzt man std::cin und std::cout!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674901</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674901</guid><dc:creator><![CDATA[helferlein]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:32:55 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:42:11 GMT]]></title><description><![CDATA[<p>Wie du eine Variable deklarierst, siehst du bitte selber irgendwo nach. Soviel Eigeninitiative kann man verlangen. Ansonsten...</p>
<p>...musst du nicht für jede Auswahl des Nutzers eigene Variablen erschaffen (a,b,c,d,e,f...). Du kannst ruhig 2 Variablen für alle Operationen nehmen und dio quasi recyclen.</p>
<p>Außerdem solltest du wohl die Berechnung besser in deine Funktionen packen. Die geben dann das Ergebnis zurück. Und das gibst du dann an zentraler Stelle aus. Was du machst (Berechnung in den if-Anweisungen und nur Ergebnisausgabe in den Funktionen) ist recht unsinnig.</p>
<p>EDIT: helferlein, den zweiten addi-Aufruf sparen wir uns aber, oder? <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="😉"
    /><br />
EDIT2: Und die printf-Ausgabe könnte man ja aus den if-Anweisungen rausziehen und einmal unten drunter packen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674904</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:42:11 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:38:59 GMT]]></title><description><![CDATA[<p>_matze schrieb:</p>
<blockquote>
<p>Nee, kenn ich nicht. Muss ich mich jetzt schämen? <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>
</blockquote>
<p>JA! :p <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/21680">@DarkDagon</a>,<br />
Das Problem ist, dies sind ABSOLUTE GRUNDLAGEN. Wenn man dir diesen Code korrigiert, dann muss man befürchten, dass du einfach nur Copy&amp;Paste durchführst. Dies sind so grundlegende und einfache Probleme, wer diese nicht verstanden hat, sollte gleich wieder zurück zum Anfang gehen. Etwas anderes kann man da fast nicht empfehlen. Zumindest ist das meine Meinung.</p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674906</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674906</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:38:59 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:48:39 GMT]]></title><description><![CDATA[<p>Irgendwie hab ichs dennoch ned geschafft x.x</p>
<pre><code class="language-cpp">else if(auswahl == 2)
{
    float zahl1, zahl2;
    printf(&quot;\n\n\t                   Sie haben Addieren gew\x84hlt !                       &quot;);
    printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
    scanf(&quot;%d&quot;,&amp;zahl1);
    printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
    scanf(&quot;%d&quot;,&amp;zahl2);
    printf(&quot;Das Ergebnis ist : &amp;d&quot;, addi(zahl1, zahl2)); // keine addresse verwenden! (&amp;)
    addi();
}
float addi(float a, float b)
{
     return a + b;
}
</code></pre>
<p>Hab das probiert auch in ner anderen Form aber es klappt ned x.x</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674910</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674910</guid><dc:creator><![CDATA[DarkDagon]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:48:39 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 20:57:50 GMT]]></title><description><![CDATA[<p>DarkDagon schrieb:</p>
<blockquote>
<p>Irgendwie hab ichs dennoch ned geschafft x.x</p>
</blockquote>
<p>Was genau soll das heißen? x.x</p>
<p>Eine etwas detailliertere Fehlerbeschreibung wäre wirklich hilfreich, wie du dir sicher denken kannst. x.x</p>
<p>Also, was genau klappt nicht? Gibt's eine Fehlermeldung? Ein Fehlverhalten? Wenn ja, wie sieht das aus? x.x</p>
<p>x.x <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674914</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 05 Mar 2009 20:57:50 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 21:04:25 GMT]]></title><description><![CDATA[<p>Also habs mal so geschafft das das Programm sich complimiert .</p>
<p>Das Problem was ich jetzt habe überall kommt 0 !!! heraus .</p>
<pre><code class="language-cpp">#include &lt;math.h&gt;
#include &lt;cstdlib&gt;
#include &lt;iostream&gt;

using namespace std;

char auswahl;
float ergebnis;
void wurz(float a);
void addi(float b,float c);
void divi(float d,float e);
void subt(float f,float g);
void mult(float h,float i);

int main(int argc, char *argv[])
{
     printf(&quot;*------------------------------------------------------------------------------*\n\n&quot;); 
     printf(&quot;                               *Taschenrechner*                                 \n\n&quot;);
     printf(&quot;\t(1) Wurzel\n\n&quot;);
     printf(&quot;\t(2) Addieren\n\n&quot;);
     printf(&quot;\t(3) Dividieren\n\n&quot;);
     printf(&quot;\t(4) Subtrahieren\n\n&quot;);
     printf(&quot;\t(5) Multiplizieren\n&quot;);
     printf(&quot;\n\n*------------------------------------------------------------------------------*&quot;);
     printf(&quot;\n\n\t        Geben sie eine Zahl zum jeweiligen Operator ein !                     &quot;);
     printf(&quot;\n\n\t -&gt; &quot;);
     scanf(&quot;%d&quot;,&amp;auswahl);
     printf(&quot;\n\n*------------------------------------------------------------------------------*&quot;);
     if(auswahl == 1)
     {
          float a;
          printf(&quot;\n\n\t                   Sie haben Wurzel gew\x84hlt !                        &quot;);
          printf(&quot;\n\n\n\t\tZahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;a);
          printf(&quot;\n\n\t\tDas Ergebnis ist : %d&quot;,a,ergebnis);
          wurz(a);
          printf(&quot;\n\n\n&quot;);
     }
     else if(auswahl == 2)
     {
          float b,c;
          printf(&quot;\n\n\t                   Sie haben Addieren gew\x84hlt !                       &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;b);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;c);
          printf(&quot;\n\n\t\tDas Ergebnis ist : %d&quot;,b,c,ergebnis);
          addi(b,c);
          printf(&quot;\n\n\n&quot;);
     }
     else if(auswahl == 3)
     {
          float d,e;
          printf(&quot;\n\n\t                 Sie haben Dividieren gew\x84hlt !                       &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;d);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;e);
          printf(&quot;\n\n\t\tDas Ergebnis ist : %d&quot;,d,e,ergebnis);
          divi(d,e);
          printf(&quot;\n\n\n&quot;);
     }
     else if(auswahl == 4)
     {
          float f,g;
          printf(&quot;\n\n\t                Sie haben Subtrahieren gew\x84hlt !                      &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;f);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;g);
          printf(&quot;\n\n\t\tDas Ergebnis ist : %d&quot;,f,g,ergebnis);
          subt(f,g);
          printf(&quot;\n\n\n&quot;);
     }
     else if(auswahl == 5)
     {
          float h,i;
          printf(&quot;\n\n\t               Sie haben Multiplizieren gew\x84hlt !                     &quot;);
          printf(&quot;\n\n\n\t\t1.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;h);
          printf(&quot;\n\n\t\t2.Zahl eingeben : &quot;);
          scanf(&quot;%d&quot;,&amp;i);
          printf(&quot;\n\n\t\tDas Ergebnis ist : %d&quot;,h,i,ergebnis);
          mult(h,i);
          printf(&quot;\n\n\n&quot;); 
     }
     system(&quot;PAUSE&quot;);
     return EXIT_SUCCESS;
}

void wurz(float a)
{
     ergebnis = sqrt(a);
}

void addi(float b,float c)
{
     ergebnis = b + c;
}

void divi(float d,float e)
{
     ergebnis = d / e;
}

void subt(float f,float g)
{
     ergebnis = f - g;
}

void mult(float h,float i)
{
     ergebnis = h * i;
}
</code></pre>
<p>Wo ist da das Problem <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f623.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--persevering_face"
      title="&gt;.&lt;"
      alt="😣"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674916</guid><dc:creator><![CDATA[DarkDagon]]></dc:creator><pubDate>Thu, 05 Mar 2009 21:04:25 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 21:12:11 GMT]]></title><description><![CDATA[<p>Das Problem ist, dass du keine Ahnung hast, was du da eigentlich machst, sorry... <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>Du gibst ergebnis aus, bevor du überhaupt einen Wert zugewiesen hast. Und <strong>im Anschluss</strong> führst du dann die jeweilige Funktion aus, die ergebnis einen Wert zuweist.</p>
<p>1. Warum orientierst du dich nicht an dem Beispiel, dass du bekommen hast? Da wurden die Funktionen direkt in die printf-Anweisungen gepackt. Das macht Sinn! So wäre übrigens die Variable ergebnis komplett überflüssig.</p>
<p>2. Kannst du gerne auch über eine Variable ergebnis gehen. Dann weise ihr aber vor der Ausgabe den Ergebniswert zu. Und das am besten nicht über eine Globale, wie du es im Moment machst, sondern über den Rückgabewert der jeweiligen Funktion und eine lokale Variable ergebnis (in main deklarieren).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674918</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 05 Mar 2009 21:12:11 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 21:22:07 GMT]]></title><description><![CDATA[<p>Ich probier ganze Zeit schon rum und ich versteh das mit den Funktionen ned so gut x.x</p>
<p>Gibts ne Hilfe Seite oder so weil das Beispiel naja <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f623.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--persevering_face"
      title="&gt;.&lt;"
      alt="😣"
    /></p>
<p>P.S : Benütze Blood. Dev C++</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674921</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674921</guid><dc:creator><![CDATA[DarkDagon]]></dc:creator><pubDate>Thu, 05 Mar 2009 21:22:07 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 21:29:13 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;cmath&gt;		// wenn dann schon C++ Header
#include &lt;conio.h&gt;		// _getch() - nur fuer Windows
#include &lt;iostream&gt; 

using namespace std;  

// Funktionen deklarieren
float wurz(float);
float addi(float, float);
float divi(float, float);
float subt(float, float);
float mult(float, float);

// Die C-I/O-Anweisungen habe ich durch die C++-Version ersetzt

int main(int argc, char *argv[]) 
{ 
	 char auswahl;
	 float zahl1, zahl2;
	 do
	 {
		 cout &lt;&lt; &quot;*------------------------------------------------------------------------------*\n\n&quot;; 
		 cout &lt;&lt; &quot;                               *Taschenrechner*                                 \n\n&quot;; 
		 cout &lt;&lt; &quot;\t(1) Wurzel\n\n&quot;; 
		 cout &lt;&lt; &quot;\t(2) Addieren\n\n&quot;; 
		 cout &lt;&lt; &quot;\t(3) Dividieren\n\n&quot;; 
		 cout &lt;&lt; &quot;\t(4) Subtrahieren\n\n&quot;; 
		 cout &lt;&lt; &quot;\t(5) Multiplizieren\n&quot;; 
		 cout &lt;&lt; &quot;\t(6) Beenden\n&quot;;
		 cout &lt;&lt; &quot;\n\n*------------------------------------------------------------------------------*&quot;; 
		 cout &lt;&lt; &quot;\n\n\t        Geben sie eine Zahl zum jeweiligen Operator ein !                     &quot;; 
		 cout &lt;&lt; &quot;\n\n\t -&gt; &quot;; 
		 cin &gt;&gt; auswahl;

		 cout &lt;&lt; &quot;\n\n*------------------------------------------------------------------------------*&quot;; 

 		 if (auswahl &lt; '1' || auswahl &gt; '6') {	// wenn eine nichtexistierender Menuepunkt eingegeben wurde...
			 cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
		 }
		 else if(auswahl == '1') 
		 { 
			  cout &lt;&lt; &quot;\n\n\t                   Sie haben Wurzel gew\x84hlt !                        &quot;; 
			  cout &lt;&lt; &quot;\n\n\n\t\tZahl eingeben : &quot;; 
			  cin &gt;&gt; zahl1;
			  cout &lt;&lt; &quot;\n\n\t\tDas Ergebnis ist : &quot; &lt;&lt; wurz(zahl1); 
			  cout &lt;&lt; &quot;\n\n\n&quot;; 
		 } 
		 else if(auswahl == '2') 
		 {  
			  cout &lt;&lt; &quot;\n\n\t                   Sie haben Addieren gew\x84hlt !                       &quot;; 
			  cout &lt;&lt; &quot;\n\n\n\t\t1.Zahl eingeben : &quot;; 
			  cin &gt;&gt; zahl1;
			  cout &lt;&lt; &quot;\n\n\t\t2.Zahl eingeben : &quot;; 
			  cin &gt;&gt; zahl2; 
			  cout &lt;&lt; &quot;\n\n\t\tDas Ergebnis ist : &quot; &lt;&lt; addi(zahl1, zahl2);
			  cout &lt;&lt; &quot;\n\n\n&quot;; 
		 } 
		 else if(auswahl == '3') 
		 { 
			  cout &lt;&lt; &quot;\n\n\t                 Sie haben Dividieren gew\x84hlt !                       &quot;; 
			  cout &lt;&lt; &quot;\n\n\n\t\t1.Zahl eingeben : &quot;; 
			  cin &gt;&gt; zahl1;
			  cout &lt;&lt; &quot;\n\n\t\t2.Zahl eingeben : &quot;; 
			  cin &gt;&gt; zahl2;
			  cout &lt;&lt; &quot;\n\n\t\tDas Ergebnis ist : &quot; &lt;&lt; divi(zahl1, zahl2);
			  cout &lt;&lt; &quot;\n\n\n&quot;; 
		 } 
		 else if(auswahl == '4') 
		 { 
			  cout &lt;&lt; &quot;\n\n\t                Sie haben Subtrahieren gew\x84hlt !                      &quot;; 
			  cout &lt;&lt; &quot;\n\n\n\t\t1.Zahl eingeben : &quot;; 
			  cin &gt;&gt; zahl1;
			  cout &lt;&lt; &quot;\n\n\t\t2.Zahl eingeben : &quot;; 
			  cin &gt;&gt; zahl2;
			  cout &lt;&lt; &quot;\n\n\t\tDas Ergebnis ist : &quot; &lt;&lt; subt(zahl1, zahl2);
			  cout &lt;&lt; &quot;\n\n\n&quot;; 
		 } 
		 else if(auswahl == '5') 
		 { 
			  cout &lt;&lt; &quot;\n\n\t               Sie haben Multiplizieren gew\x84hlt !                     &quot;; 
			  cout &lt;&lt; &quot;\n\n\n\t\t1.Zahl eingeben : &quot;; 
			  cin &gt;&gt; zahl1;
			  cout &lt;&lt; &quot;\n\n\t\t2.Zahl eingeben : &quot;; 
			  cin &gt;&gt; zahl2;
			  cout &lt;&lt; &quot;\n\n\t\tDas Ergebnis ist : &quot; &lt;&lt; mult(zahl1, zahl2); 
			  cout &lt;&lt; &quot;\n\n\n&quot;; 
		 } 
		 cout &lt;&lt; &quot;Bitte eine beliebige Taste druecken ...&quot;;
		 _getch();		// schnellere Alternative zu system(&quot;pause&quot;)
	 } while (auswahl != '6');
     return 0;
} 

float wurz(float a) 
{ 
     return sqrt(a); 
} 

float addi(float b,float c) 
{ 
     return b + c; 
} 

float divi(float d,float e) 
{ 
     return d / e; 
} 

float subt(float f,float g) 
{ 
     return f - g; 
} 

float mult(float h,float i) 
{ 
     return h * i; 
}
</code></pre>
<p>Gruss<br />
Cartman</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674926</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674926</guid><dc:creator><![CDATA[Eric Cartman]]></dc:creator><pubDate>Thu, 05 Mar 2009 21:29:13 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 21:30:01 GMT]]></title><description><![CDATA[<p>DarkDagon schrieb:</p>
<blockquote>
<p>Ich probier ganze Zeit schon rum und ich versteh das mit den Funktionen ned so gut x.x</p>
<p>Gibts ne Hilfe Seite oder so weil das Beispiel naja <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f623.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--persevering_face"
      title="&gt;.&lt;"
      alt="😣"
    /></p>
<p>P.S : Benütze Blood. Dev C++</p>
</blockquote>
<p>Ähm, du kriegst hier doch eine Menge Hilfe! Was nur keiner machen will ist, dir deine Ausgabe komplett vorzukauen. Dafür musst du Verständnis haben. Hier sind ständig Leute, die ihre Hausaufgaben posten und eine Komplettlösung verlangen. Das hilft dir langfristig nicht.</p>
<p>Und zum Beispiel: Das Beispiel ist eigentlich sehr gut und alles, was du brauchst (bis auf den letzten addi-Aufruf, der ist überflüssig, und bei printf muss &quot;%d&quot; stehen, nicht &quot;&amp;d&quot;!). Übernimm den Code mal genauso, wie er da steht (denn das hast du nicht getan, du hast den Code dann noch abgeändert und ihn funktionsuntüchtig gemacht) und ändere die 2 Dinge, die ich gerade angemerkt habe. Dann sollte deine Addition schon mal reibungslos funktionieren. Bist du erstmal soweit, übernimmst du dieses Prinzip für alle anderen Operationen. Da brauchst du ja nur Details zu ändern.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674929</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 05 Mar 2009 21:30:01 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 21:36:40 GMT]]></title><description><![CDATA[<p>Ich weiß das ich von auch ne Menge Hilfe bekomme</p>
<p>Und ich kann ma vorstellen das die meisten Hüs posten und das auch nerven oder ziemlich sauer macht x.x</p>
<p>Aber vielen dank das ihr auch dennoch die Zeit nehmt und sry</p>
<p>Das Blöde ist ich mache genrell nie was mit cout weil wir das ned gelernt haben ich weiß ned für was das steht genauso wie cin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674934</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674934</guid><dc:creator><![CDATA[DarkDagon]]></dc:creator><pubDate>Thu, 05 Mar 2009 21:36:40 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 21:36:51 GMT]]></title><description><![CDATA[<p>Eric Cartman schrieb:</p>
<blockquote>
<p>// Die C-I/O-Anweisungen habe ich durch die C++-Version ersetzt</p>
</blockquote>
<p>Hm, weiß nicht ob das so gut war. Jetzt wird er gar nix mehr verstehen. Na ja, außerdem wird er den Code jetzt sowieso einfach übernehmen und nicht mehr drüber nachdenken. In meinen Augen war die ganze Mühe, ihm die Funktionalität näher zu bringen, jetzt umsonst. Mir soll's egal sein, ich schau mir noch 'ne Folge Family Guy an und geh dann schlafen... <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>
<p>P.S.: Dann hättest du direkt ne switch-Anweisung machen können. Und über using namespace std lässt sich auch streiten...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674938</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674938</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 05 Mar 2009 21:36:51 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 21:39:25 GMT]]></title><description><![CDATA[<p>DarkDagon schrieb:</p>
<blockquote>
<p>Das Blöde ist ich mache genrell nie was mit cout weil wir das ned gelernt haben ich weiß ned für was das steht genauso wie cin</p>
</blockquote>
<p>Ganz kurz: cout ist für die Ausgabe, cin für die Eingabe. Meine Empfehlung: bring lieber deinen bestehenden Code in Ordnung, das sollte mir den Tipps hier locker zu schaffen sein. Und dann verstehst du auch, was du vermutlich morgen deinem Lehrer zeigst.</p>
<p>Guta Nacht! <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1674947</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674947</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 05 Mar 2009 21:39:25 GMT</pubDate></item><item><title><![CDATA[Reply to Hilfe bei Rechner (C++) x.x [Funktionen] on Thu, 05 Mar 2009 21:55:23 GMT]]></title><description><![CDATA[<p>_matze schrieb:</p>
<blockquote>
<p>Eric Cartman schrieb:</p>
<blockquote>
<p>// Die C-I/O-Anweisungen habe ich durch die C++-Version ersetzt</p>
</blockquote>
<p>Hm, weiß nicht ob das so gut war. Jetzt wird er gar nix mehr verstehen. Na ja, außerdem wird er den Code jetzt sowieso einfach übernehmen und nicht mehr drüber nachdenken. In meinen Augen war die ganze Mühe, ihm die Funktionalität näher zu bringen, jetzt umsonst. Mir soll's egal sein, ich schau mir noch 'ne Folge Family Guy an und geh dann schlafen... <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>
<p>P.S.: Dann hättest du direkt ne switch-Anweisung machen können. Und über using namespace std lässt sich auch streiten...</p>
</blockquote>
<p>Hm, ja - haette ich mir sparen koennen. Was bringt ihm Code, den er nicht versteht...</p>
<p>Sorry...</p>
<p>Gruss<br />
Cartman</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1674960</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1674960</guid><dc:creator><![CDATA[Eric Cartman]]></dc:creator><pubDate>Thu, 05 Mar 2009 21:55:23 GMT</pubDate></item></channel></rss>