<?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[Berechnung = 0?!?! Brauche mal Hilfe]]></title><description><![CDATA[<p>Hab folgendes Problem, hab diese schöne Rechnung hier gebastelt:</p>
<pre><code class="language-cpp">UpdateData (TRUE);
	m_sCelsius.Replace(&quot;,&quot;,&quot;.&quot;);
	m_sFahrenheit.Replace(&quot;,&quot;,&quot;.&quot;);
	m_sKelvin.Replace(&quot;,&quot;,&quot;.&quot;);
	m_sReaumur.Replace(&quot;,&quot;,&quot;.&quot;);
	double m_fCelsius = atoi(m_sCelsius);
	double m_fFahrenheit = atoi(m_sFahrenheit);
	double m_fKelvin = atoi(m_sKelvin);
	double m_fReaumur = atoi(m_sReaumur);
	switch(m_iAuswahlkelvin)
	{
	case 0:
		switch(m_iBerechnungsart)
		{
		case 0:
			m_fKelvin = (m_fCelsius + 273.0);
			m_fFahrenheit = ((m_fCelsius * (9.0 / 5.0)) + 32.0);
			m_fReaumur = (m_fCelsius * (4.0 / 5.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 1:
			m_fKelvin = (((m_fFahrenheit - 32.0) * (5.0 / 9.0)) + 273.0);
			m_fCelsius = ((m_fFahrenheit - 32.0) * (5.0 / 9.0));
			m_fReaumur = ((m_fFahrenheit - 32.0) * (4.0 / 9.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 2:
			m_fCelsius = (m_fKelvin - 273.0);
			m_fFahrenheit = (((m_fKelvin - 273.0) * (9.0 / 5.0)) + 32.0);
			m_fReaumur = ((m_fKelvin - 273.0) * (4.0 / 5.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 3:
			m_fCelsius = (m_fReaumur * (5.0 / 4.0));
			m_fFahrenheit = ((m_fReaumur * (9.0 / 4.0)) + 32.0);
			m_fKelvin = ((m_fReaumur * (5.0 / 4.0)) + 273.0);
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		}
		break;
	case 1:
		switch(m_iBerechnungsart)
		{
		case 0:
			m_fKelvin = (m_fCelsius + 273.15);
			m_fFahrenheit = ((m_fCelsius * (9.0 / 5.0)) + 32.0);
			m_fReaumur = (m_fCelsius * (4.0 / 5.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 1:
			m_fKelvin = (((m_fFahrenheit - 32.0) * (5.0 / 9.0)) + 273.15);
			m_fCelsius = ((m_fFahrenheit - 32.0) * (5.0 / 9.0));
			m_fReaumur = ((m_fFahrenheit - 32.0) * (4.0 / 9.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 2:
			m_fCelsius = (m_fKelvin - 273.15);
			m_fFahrenheit = (((m_fKelvin - 273.15) * (9.0 / 5.0)) + 32.0);
			m_fReaumur = ((m_fKelvin - 273.15) * (4.0 / 5.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 3:
			m_fCelsius = (m_fReaumur * (5.0 / 4.0));
			m_fFahrenheit = ((m_fReaumur * (9.0 / 4.0)) + 32.0);
			m_fKelvin = ((m_fReaumur * (5.0 / 4.0)) + 273.15);
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		}
		break;
	}
</code></pre>
<p>Die soll von Eingabefeldern (Strings) die Kommas in Punkte verwandeln und danach den String zu double konvertieren. Danach soll mit dem double gerechnet werden und nach der Rechnung das double zu String umkonvertiert werden und wieder ausgegeben werden. Es kommt aber immer 0 Raus, und ich verstehe nicht warum. Seht ihr da drin einen Fehler??</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/47802/berechnung-0-brauche-mal-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 03:44:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/47802.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 02 Sep 2003 13:22:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Berechnung = 0?!?! Brauche mal Hilfe on Tue, 02 Sep 2003 13:22:36 GMT]]></title><description><![CDATA[<p>Hab folgendes Problem, hab diese schöne Rechnung hier gebastelt:</p>
<pre><code class="language-cpp">UpdateData (TRUE);
	m_sCelsius.Replace(&quot;,&quot;,&quot;.&quot;);
	m_sFahrenheit.Replace(&quot;,&quot;,&quot;.&quot;);
	m_sKelvin.Replace(&quot;,&quot;,&quot;.&quot;);
	m_sReaumur.Replace(&quot;,&quot;,&quot;.&quot;);
	double m_fCelsius = atoi(m_sCelsius);
	double m_fFahrenheit = atoi(m_sFahrenheit);
	double m_fKelvin = atoi(m_sKelvin);
	double m_fReaumur = atoi(m_sReaumur);
	switch(m_iAuswahlkelvin)
	{
	case 0:
		switch(m_iBerechnungsart)
		{
		case 0:
			m_fKelvin = (m_fCelsius + 273.0);
			m_fFahrenheit = ((m_fCelsius * (9.0 / 5.0)) + 32.0);
			m_fReaumur = (m_fCelsius * (4.0 / 5.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 1:
			m_fKelvin = (((m_fFahrenheit - 32.0) * (5.0 / 9.0)) + 273.0);
			m_fCelsius = ((m_fFahrenheit - 32.0) * (5.0 / 9.0));
			m_fReaumur = ((m_fFahrenheit - 32.0) * (4.0 / 9.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 2:
			m_fCelsius = (m_fKelvin - 273.0);
			m_fFahrenheit = (((m_fKelvin - 273.0) * (9.0 / 5.0)) + 32.0);
			m_fReaumur = ((m_fKelvin - 273.0) * (4.0 / 5.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 3:
			m_fCelsius = (m_fReaumur * (5.0 / 4.0));
			m_fFahrenheit = ((m_fReaumur * (9.0 / 4.0)) + 32.0);
			m_fKelvin = ((m_fReaumur * (5.0 / 4.0)) + 273.0);
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		}
		break;
	case 1:
		switch(m_iBerechnungsart)
		{
		case 0:
			m_fKelvin = (m_fCelsius + 273.15);
			m_fFahrenheit = ((m_fCelsius * (9.0 / 5.0)) + 32.0);
			m_fReaumur = (m_fCelsius * (4.0 / 5.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 1:
			m_fKelvin = (((m_fFahrenheit - 32.0) * (5.0 / 9.0)) + 273.15);
			m_fCelsius = ((m_fFahrenheit - 32.0) * (5.0 / 9.0));
			m_fReaumur = ((m_fFahrenheit - 32.0) * (4.0 / 9.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 2:
			m_fCelsius = (m_fKelvin - 273.15);
			m_fFahrenheit = (((m_fKelvin - 273.15) * (9.0 / 5.0)) + 32.0);
			m_fReaumur = ((m_fKelvin - 273.15) * (4.0 / 5.0));
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		case 3:
			m_fCelsius = (m_fReaumur * (5.0 / 4.0));
			m_fFahrenheit = ((m_fReaumur * (9.0 / 4.0)) + 32.0);
			m_fKelvin = ((m_fReaumur * (5.0 / 4.0)) + 273.15);
			m_sCelsius.Format(&quot;%d&quot;, m_fCelsius);
			m_sFahrenheit.Format(&quot;%d&quot;, m_fFahrenheit);
			m_sKelvin.Format(&quot;%d&quot;, m_fKelvin);
			m_sReaumur.Format(&quot;%d&quot;, m_fReaumur);
			m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);
			m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);
			UpdateData(FALSE);
			break;
		}
		break;
	}
</code></pre>
<p>Die soll von Eingabefeldern (Strings) die Kommas in Punkte verwandeln und danach den String zu double konvertieren. Danach soll mit dem double gerechnet werden und nach der Rechnung das double zu String umkonvertiert werden und wieder ausgegeben werden. Es kommt aber immer 0 Raus, und ich verstehe nicht warum. Seht ihr da drin einen Fehler??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/345659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/345659</guid><dc:creator><![CDATA[Raven2]]></dc:creator><pubDate>Tue, 02 Sep 2003 13:22:36 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung = 0?!?! Brauche mal Hilfe on Tue, 02 Sep 2003 13:45:40 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ersetze doch mal in deinen Format-Befehlen die &quot;%d&quot; durch &quot;%g&quot;.</p>
<p>Tschüss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/345679</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/345679</guid><dc:creator><![CDATA[isabeau]]></dc:creator><pubDate>Tue, 02 Sep 2003 13:45:40 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung = 0?!?! Brauche mal Hilfe on Tue, 02 Sep 2003 13:47:07 GMT]]></title><description><![CDATA[<p>atoi ist auch nicht so gut, wenn du doubles haben willst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/345680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/345680</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Tue, 02 Sep 2003 13:47:07 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung = 0?!?! Brauche mal Hilfe on Tue, 02 Sep 2003 14:05:10 GMT]]></title><description><![CDATA[<p>Ich habe den Code mal ein bisschen verkürzt,und die richtigen Befehle eingefügt.</p>
<pre><code class="language-cpp">UpdateData (TRUE); 
    m_sCelsius.Replace(&quot;,&quot;,&quot;.&quot;); 
    m_sFahrenheit.Replace(&quot;,&quot;,&quot;.&quot;); 
    m_sKelvin.Replace(&quot;,&quot;,&quot;.&quot;); 
    m_sReaumur.Replace(&quot;,&quot;,&quot;.&quot;); 
    double m_fCelsius = atof(m_sCelsius); 
    double m_fFahrenheit = atof(m_sFahrenheit); 
    double m_fKelvin = atof(m_sKelvin); 
    double m_fReaumur = atof(m_sReaumur); 
    switch(m_iAuswahlkelvin) 
    { 
    case 0: 
        switch(m_iBerechnungsart) 
        { 
        case 0: 
            m_fKelvin = (m_fCelsius + 273.0); 
            m_fFahrenheit = ((m_fCelsius * (9.0 / 5.0)) + 32.0); 
            m_fReaumur = (m_fCelsius * (4.0 / 5.0)); 
        break; 
        case 1: 
            m_fKelvin = (((m_fFahrenheit - 32.0) * (5.0 / 9.0)) + 273.0); 
            m_fCelsius = ((m_fFahrenheit - 32.0) * (5.0 / 9.0)); 
            m_fReaumur = ((m_fFahrenheit - 32.0) * (4.0 / 9.0)); 
        break; 
        case 2: 
            m_fCelsius = (m_fKelvin - 273.0); 
            m_fFahrenheit = (((m_fKelvin - 273.0) * (9.0 / 5.0)) + 32.0); 
            m_fReaumur = ((m_fKelvin - 273.0) * (4.0 / 5.0)); 
        break; 
        case 3: 
            m_fCelsius = (m_fReaumur * (5.0 / 4.0)); 
            m_fFahrenheit = ((m_fReaumur * (9.0 / 4.0)) + 32.0); 
            m_fKelvin = ((m_fReaumur * (5.0 / 4.0)) + 273.0); 
        break; 
        } 
        break; 
    case 1: 
        switch(m_iBerechnungsart) 
        { 
        case 0: 
            m_fKelvin = (m_fCelsius + 273.15); 
            m_fFahrenheit = ((m_fCelsius * (9.0 / 5.0)) + 32.0); 
            m_fReaumur = (m_fCelsius * (4.0 / 5.0)); 
            break; 
        case 1: 
            m_fKelvin = (((m_fFahrenheit - 32.0) * (5.0 / 9.0)) + 273.15); 
            m_fCelsius = ((m_fFahrenheit - 32.0) * (5.0 / 9.0)); 
            m_fReaumur = ((m_fFahrenheit - 32.0) * (4.0 / 9.0)); 
            break; 
        case 2: 
            m_fCelsius = (m_fKelvin - 273.15); 
            m_fFahrenheit = (((m_fKelvin - 273.15) * (9.0 / 5.0)) + 32.0); 
            m_fReaumur = ((m_fKelvin - 273.15) * (4.0 / 5.0)); 
            break; 
        case 3: 
            m_fCelsius = (m_fReaumur * (5.0 / 4.0)); 
            m_fFahrenheit = ((m_fReaumur * (9.0 / 4.0)) + 32.0); 
            m_fKelvin = ((m_fReaumur * (5.0 / 4.0)) + 273.15); 
            break; 
        } 
        break; 
    }
    m_sCelsius.Format(&quot;%g&quot;, m_fCelsius); 
    m_sFahrenheit.Format(&quot;%g&quot;, m_fFahrenheit); 
    m_sKelvin.Format(&quot;%g&quot;, m_fKelvin); 
    m_sReaumur.Format(&quot;%g&quot;, m_fReaumur); 
    m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;); 
    m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;); 
    m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;); 
    m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;); 
    UpdateData(FALSE);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/345701</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/345701</guid><dc:creator><![CDATA[Andorxor]]></dc:creator><pubDate>Tue, 02 Sep 2003 14:05:10 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung = 0?!?! Brauche mal Hilfe on Tue, 02 Sep 2003 14:34:32 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void Klasse::DeinDing()
{
    UpdateData (TRUE);
    m_sCelsius.Replace(&quot;,&quot;,&quot;.&quot;);  
    m_sFahrenheit.Replace(&quot;,&quot;,&quot;.&quot;);  
    m_sKelvin.Replace(&quot;,&quot;,&quot;.&quot;);  
    m_sReaumur.Replace(&quot;,&quot;,&quot;.&quot;);  

    double m_fCelsius = atof(m_sCelsius); 
    double m_fFahrenheit = atof(m_sFahrenheit); 
    double m_fKelvin = atof(m_sKelvin); 
    double m_fReaumur = atof(m_sReaumur); 

    double temp = 273.0:

    switch(m_iAuswahlkelvin) 
    { 
    case 0: 
        temp = 273.0;
        break; 
    case 1:
        temp = 273.15;
        break; 
    }

    switch(m_iBerechnungsart) 
    { 
    case 0: 
        m_fKelvin = (m_fCelsius + temp); 
        m_fFahrenheit = ((m_fCelsius * (9.0 / 5.0)) + 32.0); 
        m_fReaumur = (m_fCelsius * (4.0 / 5.0));
        break; 
    case 1: 
        m_fKelvin = (((m_fFahrenheit - 32.0) * (5.0 / 9.0)) + temp); 
        m_fCelsius = ((m_fFahrenheit - 32.0) * (5.0 / 9.0)); 
        m_fReaumur = ((m_fFahrenheit - 32.0) * (4.0 / 9.0)); 
        break; 
    case 2: 
        m_fCelsius = (m_fKelvin - temp); 
        m_fFahrenheit = (((m_fKelvin - temp) * (9.0 / 5.0)) + 32.0); 
        m_fReaumur = ((m_fKelvin - temp) * (4.0 / 5.0)); 
        break; 
    case 3: 
        m_fCelsius = (m_fReaumur * (5.0 / 4.0)); 
        m_fFahrenheit = ((m_fReaumur * (9.0 / 4.0)) + 32.0); 
        m_fKelvin = ((m_fReaumur * (5.0 / 4.0)) + temp); 
        break; 
    } 

    m_sCelsius.Format(&quot;%g&quot;, m_fCelsius);  
    m_sFahrenheit.Format(&quot;%g&quot;, m_fFahrenheit);  
    m_sKelvin.Format(&quot;%g&quot;, m_fKelvin);  
    m_sReaumur.Format(&quot;%g&quot;, m_fReaumur);  
    m_sCelsius.Replace(&quot;.&quot;,&quot;,&quot;);  
    m_sFahrenheit.Replace(&quot;.&quot;,&quot;,&quot;);  
    m_sKelvin.Replace(&quot;.&quot;,&quot;,&quot;);  
    m_sReaumur.Replace(&quot;.&quot;,&quot;,&quot;);   

    UpdateData(FALSE);
}
</code></pre>
<p>Hab mich einwenig gespielt mit deinem Source <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>So hast du doch weniger arbeit wenn du etwas veränderst oder?</p>
<p>TSCHAU, Sigi</p>
<p>Nachtrag: mist jetzt war ich doch noch zu langsam :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/345724</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/345724</guid><dc:creator><![CDATA[BigSigi]]></dc:creator><pubDate>Tue, 02 Sep 2003 14:34:32 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung = 0?!?! Brauche mal Hilfe on Tue, 02 Sep 2003 14:55:10 GMT]]></title><description><![CDATA[<p>Du warst zwar langsamer,aber dafür auch kürzer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/345763</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/345763</guid><dc:creator><![CDATA[Andorxor]]></dc:creator><pubDate>Tue, 02 Sep 2003 14:55:10 GMT</pubDate></item></channel></rss>