<?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[int test(), int kalkulator, .. Frage]]></title><description><![CDATA[<p>hi,</p>
<p>also irgendwie verstehe ich das noch nicht so ganz mit folgendem:</p>
<pre><code class="language-cpp">int calculate(float ZTEMP, float GTEMP, float FAKT, int TIMES)
{
    float DIF = 0;
    if(ZTEMP &gt; GTEMP)
        DIF = ZTEMP - GTEMP;       //Differenz Ermitteln
    else
        DIF = GTEMP - ZTEMP; //Differenz Ermitteln
    float RESULT = 0;
    //RESULT = DIF * (FAKT^TIMES); //So geht das komischerweise nicht!
    while(TIMES &lt; 1)                 //Wie viele Minuten?
    {
     --TIMES;                          //Schleife...
     DIF = DIF * FAKT;            //PotenzialFunktion
    }
        RESULT = ZTEMP - DIF;
    return RESULT;         //Ergebnis Ausgeben
}
</code></pre>
<p>hab ich gerade woraus aus einem anderem Forum von einem bekannten,der das gemacht hat.<br />
Aber warum schreibt er int kal... und nicht int main()?<br />
Woran liegt der Unterschied?</p>
<p>Daaaniel</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162448/int-test-int-kalkulator-frage</link><generator>RSS for Node</generator><lastBuildDate>Sat, 12 Sep 2026 06:17:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162448.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 18 Oct 2006 16:49:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to int test(), int kalkulator, .. Frage on Wed, 18 Oct 2006 16:49:44 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>also irgendwie verstehe ich das noch nicht so ganz mit folgendem:</p>
<pre><code class="language-cpp">int calculate(float ZTEMP, float GTEMP, float FAKT, int TIMES)
{
    float DIF = 0;
    if(ZTEMP &gt; GTEMP)
        DIF = ZTEMP - GTEMP;       //Differenz Ermitteln
    else
        DIF = GTEMP - ZTEMP; //Differenz Ermitteln
    float RESULT = 0;
    //RESULT = DIF * (FAKT^TIMES); //So geht das komischerweise nicht!
    while(TIMES &lt; 1)                 //Wie viele Minuten?
    {
     --TIMES;                          //Schleife...
     DIF = DIF * FAKT;            //PotenzialFunktion
    }
        RESULT = ZTEMP - DIF;
    return RESULT;         //Ergebnis Ausgeben
}
</code></pre>
<p>hab ich gerade woraus aus einem anderem Forum von einem bekannten,der das gemacht hat.<br />
Aber warum schreibt er int kal... und nicht int main()?<br />
Woran liegt der Unterschied?</p>
<p>Daaaniel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157226</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157226</guid><dc:creator><![CDATA[Daaaniel]]></dc:creator><pubDate>Wed, 18 Oct 2006 16:49:44 GMT</pubDate></item><item><title><![CDATA[Reply to int test(), int kalkulator, .. Frage on Wed, 18 Oct 2006 17:05:15 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Das was du gepostet hast, ist nur eine einzelne Funktion, die aus der main-Funktion heraus aufgerufen werden muss.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157233</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157233</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 18 Oct 2006 17:05:15 GMT</pubDate></item><item><title><![CDATA[Reply to int test(), int kalkulator, .. Frage on Wed, 18 Oct 2006 17:24:53 GMT]]></title><description><![CDATA[<p>Also wie meinst du das inetwa?<br />
Muss ich zuerst main() hinschreiben oder wie?</p>
<p>chrische5 schrieb:</p>
<blockquote>
<p>Hallo</p>
<p>Das was du gepostet hast, ist nur eine einzelne Funktion, die aus der main-Funktion heraus aufgerufen werden muss.</p>
<p>chrische</p>
</blockquote>
<p>Das heisst?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157240</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157240</guid><dc:creator><![CDATA[Daaaniel]]></dc:creator><pubDate>Wed, 18 Oct 2006 17:24:53 GMT</pubDate></item><item><title><![CDATA[Reply to int test(), int kalkulator, .. Frage on Wed, 18 Oct 2006 17:32:35 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Bei aller Hilfsbereitschaft kann ich dir nur empfehlen bei google mal Tutorial und C++ einzugeben. Dann hast du bestimmt tausende Treffer. Dir fehlen anscheinend die absoluten Grundlagen:</p>
<pre><code class="language-cpp">int calculate(float ZTEMP, float GTEMP, float FAKT, int TIMES);

int main()
{
calculate(1.0f, 2.0f, 3.0f, 6);
}

int calculate(float ZTEMP, float GTEMP, float FAKT, int TIMES)
{
    float DIF = 0;
    if(ZTEMP &gt; GTEMP)
        DIF = ZTEMP - GTEMP;       //Differenz Ermitteln
    else
        DIF = GTEMP - ZTEMP; //Differenz Ermitteln
    float RESULT = 0;
    //RESULT = DIF * (FAKT^TIMES); //So geht das komischerweise nicht!
    while(TIMES &lt; 1)                 //Wie viele Minuten?
    {
     --TIMES;                          //Schleife...
     DIF = DIF * FAKT;            //PotenzialFunktion
    }
        RESULT = ZTEMP - DIF;
    return RESULT;         //Ergebnis Ausgeben
}
</code></pre>
<p>Das soll nur ein Gedankenschubser sein.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157242</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157242</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 18 Oct 2006 17:32:35 GMT</pubDate></item><item><title><![CDATA[Reply to int test(), int kalkulator, .. Frage on Wed, 18 Oct 2006 17:32:39 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>das heipt das du erstmal ein Grundlagen-Tutorial für C++ durcharbeiten solltest, insbesondere zum Thema <a href="http://tutorial.schornboeck.net/funktionen.htm" rel="nofollow">Funktionen</a>.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1157243</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1157243</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Wed, 18 Oct 2006 17:32:39 GMT</pubDate></item></channel></rss>