<?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 fehl geschlagen im String grid]]></title><description><![CDATA[<p>kann mir einer Sagen wo der fehler ist bekomme nur 0 raus aus enfehrnungsberechnung</p>
<pre><code class="language-cpp">int i=1;
double L1,L2,B1,B2,e,r,w;

for(int j=0;j&lt;list-&gt;Count;j++)
{
        if (list-&gt;Strings[j] == &quot;$GPGGA&quot;)
                {
                //if (list-&gt;Strings[j+14] == &quot;*&quot;) // Überprüfen ob Prüfsumme da ist
                        {
                        if (list-&gt;Strings[j+6]== &quot;1&quot; )//or &quot;2&quot; or &quot;6&quot;)// Überprüfung der Messungsignales
                                {
                                SG1-&gt;RowCount= i;
                                SG1-&gt;Cells[0][i]= list-&gt;Strings[j]; // Satzart
                                SG1-&gt;Cells[1][i]= list-&gt;Strings[j+1];// Zeit
                                SG1-&gt;Cells[2][i]= FloatToStr(StrToFloat(StringReplace(list-&gt;Strings[j+2],&quot;.&quot;,&quot;&quot;,TReplaceFlags() &lt;&lt; rfReplaceAll))/1000000);//Breitengrad
                                SG1-&gt;Cells[3][i]= FloatToStr(StrToFloat(StringReplace(list-&gt;Strings[j+4],&quot;.&quot;,&quot;&quot;,TReplaceFlags() &lt;&lt; rfReplaceAll))/1000000);//Längengrad
                                SG1-&gt;Cells[4][i]= list-&gt;Strings[j+6];// Qualität
                                SG1-&gt;Cells[5][i]= list-&gt;Strings[j+7];// Sateliten
                                SG1-&gt;Cells[6][i]= list-&gt;Strings[j+8];// HDOP
                                SG1-&gt;Cells[7][i]= list-&gt;Strings[j+9];// NN
                                SG1-&gt;Cells[8][i]= list-&gt;Strings[j+11];// Höhe Geo
                                SG1-&gt;Cells[9][i]= list-&gt;Strings[j+14];// Prüfsumme
                                if (i&gt;1)
                                {
                                B1 = (StrToFloat(SG1-&gt;Cells[2][i])/1000000)  *(M_PI/180);
                                L1 = (StrToFloat(SG1-&gt;Cells[3][i])/1000000)  *(M_PI/180);
                                B2 = (StrToFloat(SG1-&gt;Cells[2][i-1])/1000000)*(M_PI/180);
                                L2 = (StrToFloat(SG1-&gt;Cells[3][i-1])/1000000)*(M_PI/180);
                                         w = (acos( sin(B1) * sin(B2) + cos(B1) * cos(B2) * cos(L1 - L2) ));
                                         r=6378,3;
                                         e = r*w;
                                        SG1-&gt;Cells[10][i] =FloatToStr(e);
                               }
                        i++;

                        } // Überprüfung der Messungsignales
                }  // Überprüfen ob Prüfsumme da ist
</code></pre>
<p>Danke für die Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/125189/berechnung-fehl-geschlagen-im-string-grid</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Jul 2026 01:28:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/125189.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Nov 2005 09:17:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:17:42 GMT]]></title><description><![CDATA[<p>kann mir einer Sagen wo der fehler ist bekomme nur 0 raus aus enfehrnungsberechnung</p>
<pre><code class="language-cpp">int i=1;
double L1,L2,B1,B2,e,r,w;

for(int j=0;j&lt;list-&gt;Count;j++)
{
        if (list-&gt;Strings[j] == &quot;$GPGGA&quot;)
                {
                //if (list-&gt;Strings[j+14] == &quot;*&quot;) // Überprüfen ob Prüfsumme da ist
                        {
                        if (list-&gt;Strings[j+6]== &quot;1&quot; )//or &quot;2&quot; or &quot;6&quot;)// Überprüfung der Messungsignales
                                {
                                SG1-&gt;RowCount= i;
                                SG1-&gt;Cells[0][i]= list-&gt;Strings[j]; // Satzart
                                SG1-&gt;Cells[1][i]= list-&gt;Strings[j+1];// Zeit
                                SG1-&gt;Cells[2][i]= FloatToStr(StrToFloat(StringReplace(list-&gt;Strings[j+2],&quot;.&quot;,&quot;&quot;,TReplaceFlags() &lt;&lt; rfReplaceAll))/1000000);//Breitengrad
                                SG1-&gt;Cells[3][i]= FloatToStr(StrToFloat(StringReplace(list-&gt;Strings[j+4],&quot;.&quot;,&quot;&quot;,TReplaceFlags() &lt;&lt; rfReplaceAll))/1000000);//Längengrad
                                SG1-&gt;Cells[4][i]= list-&gt;Strings[j+6];// Qualität
                                SG1-&gt;Cells[5][i]= list-&gt;Strings[j+7];// Sateliten
                                SG1-&gt;Cells[6][i]= list-&gt;Strings[j+8];// HDOP
                                SG1-&gt;Cells[7][i]= list-&gt;Strings[j+9];// NN
                                SG1-&gt;Cells[8][i]= list-&gt;Strings[j+11];// Höhe Geo
                                SG1-&gt;Cells[9][i]= list-&gt;Strings[j+14];// Prüfsumme
                                if (i&gt;1)
                                {
                                B1 = (StrToFloat(SG1-&gt;Cells[2][i])/1000000)  *(M_PI/180);
                                L1 = (StrToFloat(SG1-&gt;Cells[3][i])/1000000)  *(M_PI/180);
                                B2 = (StrToFloat(SG1-&gt;Cells[2][i-1])/1000000)*(M_PI/180);
                                L2 = (StrToFloat(SG1-&gt;Cells[3][i-1])/1000000)*(M_PI/180);
                                         w = (acos( sin(B1) * sin(B2) + cos(B1) * cos(B2) * cos(L1 - L2) ));
                                         r=6378,3;
                                         e = r*w;
                                        SG1-&gt;Cells[10][i] =FloatToStr(e);
                               }
                        i++;

                        } // Überprüfung der Messungsignales
                }  // Überprüfen ob Prüfsumme da ist
</code></pre>
<p>Danke für die Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907891</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907891</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:17:42 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:21:36 GMT]]></title><description><![CDATA[<p>kannste denn nicht die berechnung in ne extra-funktion auslagern und deinen code so formatieren, dass er lesbar wird? kriegt man ja augenkrebs von...</p>
<p>ich kann beim besten willen nicht erkennen, wo du ne entfernungsberechnung machst und vorallem von was?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907900</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907900</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:21:36 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:30:08 GMT]]></title><description><![CDATA[<p>Mach mal aus 1000000 1000000.0 und aus 180 180.0. Es könnte sein, dass dein Kompiler hier Integer-Operationen verwendet (obwohl er das nicht sollte).<br />
Dann noch aus 6378,3 6378.3.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907909</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:30:08 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:30:00 GMT]]></title><description><![CDATA[<p>Hier mach ich die<br />
[cpp]<br />
[cpp]if (i&gt;1)<br />
{<br />
B1 = (StrToFloat(SG1-&gt;Cells[2][i])/1000000) <em>(M_PI/180);<br />
L1 = (StrToFloat(SG1-&gt;Cells[3][i])/1000000) <em>(M_PI/180);<br />
B2 = (StrToFloat(SG1-&gt;Cells[2][i-1])/1000000)</em>(M_PI/180);<br />
L2 = (StrToFloat(SG1-&gt;Cells[3][i-1])/1000000)</em>(M_PI/180);<br />
<strong>w = (acos( sin(B1) * sin(B2) + cos(B1) * cos(B2) * cos(L1 - L2) ));<br />
r=6378,3;<br />
e = r*w;</strong><br />
SG1-&gt;Cells[10][i] =FloatToStr(e);[/cpp]</p>
<p>Cells[2] = Längengrade<br />
Cells[3] = Breitengrade<br />
der Rechner sollte mir dann immer aus einen Text die daten ziehen und dann bearbeiten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907915</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:31:53 GMT]]></title><description><![CDATA[<p>siehe oben<br />
bei r=6378,3; hat r den Wert 3. Kann sein, dass das der Fehler ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907917</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907917</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:31:53 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:34:42 GMT]]></title><description><![CDATA[<p>r=6378,3;<br />
nö das ist schon so richtig 6378,3 nach komma 3 kommt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907920</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907920</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:34:42 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:35:49 GMT]]></title><description><![CDATA[<p>mit den Punkten hat nicht geklappt</p>
<pre><code class="language-cpp">B1 = (StrToFloat(SG1-&gt;Cells[2][i])/1000000.0)  *(M_PI/180);
                                L1 = (StrToFloat(SG1-&gt;Cells[3][i])/1000000.0)  *(M_PI/180);
                                B2 = (StrToFloat(SG1-&gt;Cells[2][i-1])/1000000.0)*(M_PI/180);
                                L2 = (StrToFloat(SG1-&gt;Cells[3][i-1])/1000000.0)*(M_PI/180);
                                         w = (acos( sin(B1) * sin(B2) + cos(B1) * cos(B2) * cos(L1 - L2) ));
                                         r=6378.3;
                                         e = r*w;
                                        SG1-&gt;Cells[10][i] =FloatToStr(e);
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/907921</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907921</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:35:49 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:37:59 GMT]]></title><description><![CDATA[<p>Hier mit r=6378,3; weist du der Variablen r den Wert 3 zu und nicht, wie du vielleicht glaubst 6378.3.<br />
Ansonsten erzeuge erst mal double Variablen aus deinen StringGrid-Feldern und mach (wie Sunday es schon vorgeschlagen hat) eine Funktion aus deiner Berechnung. Dann geh mit dem Debugger durch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907922</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907922</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:37:59 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:39:10 GMT]]></title><description><![CDATA[<p>aber ie denn dann ???</p>
<p>6378.3 hab ich schon versucht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907927</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907927</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:39:10 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:40:30 GMT]]></title><description><![CDATA[<p>Lies noch mal. Ich habe editiert. Am wichtigsten ist das mit dem Debugger.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907929</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907929</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:40:30 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:47:31 GMT]]></title><description><![CDATA[<p>das hab ich jetzt mal ausprobiert</p>
<pre><code class="language-cpp">B1 = StrToFloat(SG1-&gt;Cells[2][i]);
                                L1 = StrToFloat(SG1-&gt;Cells[3][i]);
                                B2 = StrToFloat(SG1-&gt;Cells[2][i-1]);
                                L2 = StrToFloat(SG1-&gt;Cells[3][i-1]);
                                B1 = (B1 /1000000.0)  *(M_PI/180.0);
                                L1 = (L1/1000000.0)  *(M_PI/180.0);
                                B2 = (B2/1000000.0)*(M_PI/180.0);
                                L2 = (L2/1000000.0)*(M_PI/180.0);
                                w = (acos( sin(B1) * sin(B2) + cos(B1) * cos(B2) * cos(L1 - L2) ));
                                 r=6378.3;
                                     e = r*w;
                                        SG1-&gt;Cells[10][i] =FloatToStr(e);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/907939</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907939</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:47:31 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:48:51 GMT]]></title><description><![CDATA[<p>ahso klappt aber nicht ie mach ich den daraus ne funktion ?</p>
<p>kann mich nicht mehr drann erinnern was wir in der schule gemacht haben peinlich peinlich <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/907941</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907941</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:48:51 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:49:27 GMT]]></title><description><![CDATA[<p>und?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907942</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907942</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:49:27 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:51:21 GMT]]></title><description><![CDATA[<p>ne klappt leider nicht <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>
]]></description><link>https://www.c-plusplus.net/forum/post/907949</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907949</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:51:21 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:51:26 GMT]]></title><description><![CDATA[<p>vielleicht das nächste mal mitschreiben? ganz hilfreich wäre ja auch mal die formel bzw. die daten zu sehen, die deiner berechnung zu grunde liegen.</p>
<pre><code class="language-cpp">double CalculateDistance(/* Parameterliste */)
{
  // Berechnung durchfuehren und zurueckgeben
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/907950</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907950</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:51:26 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 09:56:13 GMT]]></title><description><![CDATA[<p>Kann ich dir leider nicht geben wil die unsortiert in einem Txt bzw sortiert dann in einem Stringrid sind ich kann aber mal ein Bsp machen</p>
<p>1 Breitengrad : 51,898422..<br />
1 Längengrad : 7,5682254...<br />
das ist L1 und B1 , B2 und L2 sehen genau so aus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907959</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907959</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 09:56:13 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 10:06:20 GMT]]></title><description><![CDATA[<p>Kann es sein, dass in den Zellen deines StringGrids auch Kommas drin sind? Ersetze die mal durch Punkte. Was soll eigentlich diese Division durch 1000000?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907971</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907971</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 04 Nov 2005 10:06:20 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 10:12:49 GMT]]></title><description><![CDATA[<p>Das Problem ist ich bekomme die koordinaten mit</p>
<p>Breitengrad :5189.5842<br />
dann suche ich den Punkt und ersetze in</p>
<p>51895842 /100000 = 51,81 das ist dan rein rechnerisch so richtig</p>
<p>die 51895.. sind bis dahin auch double</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907979</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 10:12:49 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 10:14:52 GMT]]></title><description><![CDATA[<p>warum ersetzt du den punkt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907983</guid><dc:creator><![CDATA[Sunday]]></dc:creator><pubDate>Fri, 04 Nov 2005 10:14:52 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 10:17:33 GMT]]></title><description><![CDATA[<p>weil der so aus meinem GPS gerät kommt und das nicht ganz richtig ist vom rechnen her.</p>
<p>es sind nämilch hier 51°, 5847...... deswegen muß der Punkt weg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907986</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907986</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 10:17:33 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 10:18:16 GMT]]></title><description><![CDATA[<p><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="😉"
    /> Danke noch mal für die Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907987</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907987</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 10:18:16 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 10:19:36 GMT]]></title><description><![CDATA[<p>in einem anderen Programm klappt das</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button3Click(TObject *Sender)
{
double e,B1,B2,L1,L2;

B1 = StrToFloat(Edit1-&gt;Text);
B2 = StrToFloat(Edit3-&gt;Text);
L1 = StrToFloat(Edit2-&gt;Text);
L2 = StrToFloat(Edit4-&gt;Text);

e = (acos(sin(B1*(M_PI/180)) * sin(B2*(M_PI/180)) + cos(B1*(M_PI/180)) * cos(B2*(M_PI/180)) * cos((L1*(M_PI/180)) - (L2*(M_PI/180)))))*6378,3;
Edit5-&gt;Text =FloatToStr(e);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/907989</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907989</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 10:19:36 GMT</pubDate></item><item><title><![CDATA[Reply to Berechnung fehl geschlagen im String grid on Fri, 04 Nov 2005 10:25:36 GMT]]></title><description><![CDATA[<p>JA ES KLAPPT !!!!<br />
Hab mal das andere Programm genommen und es verknüft jetzt klappt es</p>
<pre><code class="language-cpp">if (i&gt;1)
                                {
                                B1 = StrToFloat(SG1-&gt;Cells[2][i]);
                                L1 = StrToFloat(SG1-&gt;Cells[3][i]);
                                B2 = StrToFloat(SG1-&gt;Cells[2][i-1]);
                                L2 = StrToFloat(SG1-&gt;Cells[3][i-1]);
                                e = (acos(sin(B1*(M_PI/180)) * sin(B2*(M_PI/180)) + cos(B1*(M_PI/180)) * cos(B2*(M_PI/180)) * cos((L1*(M_PI/180)) - (L2*(M_PI/180)))))*6378,3;
                                       SG1-&gt;Cells[10][i] =FloatToStr(e);
</code></pre>
<p>}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/907998</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/907998</guid><dc:creator><![CDATA[com-cat]]></dc:creator><pubDate>Fri, 04 Nov 2005 10:25:36 GMT</pubDate></item></channel></rss>