<?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[Frage zu Source Code]]></title><description><![CDATA[<p>Hallo</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button3Click(TObject *Sender)
{
Close();        
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
Form1-&gt;Edit1-&gt;Text=&quot;&quot;;
Form1-&gt;Edit2-&gt;Text=&quot;&quot;;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
float celsius,fahrenheit;
celsius=StrToFloat(Form1-&gt;Edit1-&gt;Text);

fahrenheit=celsius+3;

Form1-&gt;Edit2-&gt;Text=FloatToStr(fahrenheit);

}
//---------------------------------------------------------------------------
</code></pre>
<p>wenn ich diese Zeile:</p>
<pre><code class="language-cpp">Form1-&gt;Edit2-&gt;Text=FloatToStr(fahrenheit);
</code></pre>
<p>so um schreibe: [CPP]Form1-&gt;Edit2-&gt;Text=(fahrenheit);[C/PP]</p>
<p>funktioniert das Programm ja auch.</p>
<p>Jetzt meine frage, gibt es da irgendwelche vor oder nachteile wenn man das FloatToStr da mit reinschreibt?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/196592/frage-zu-source-code</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 12:07:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/196592.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 Oct 2007 14:41:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Frage zu Source Code on Wed, 31 Oct 2007 14:51:32 GMT]]></title><description><![CDATA[<p>Hallo</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop

#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
TForm1 *Form1;
//---------------------------------------------------------------------------
__fastcall TForm1::TForm1(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button3Click(TObject *Sender)
{
Close();        
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button2Click(TObject *Sender)
{
Form1-&gt;Edit1-&gt;Text=&quot;&quot;;
Form1-&gt;Edit2-&gt;Text=&quot;&quot;;
}
//---------------------------------------------------------------------------

void __fastcall TForm1::Button1Click(TObject *Sender)
{
float celsius,fahrenheit;
celsius=StrToFloat(Form1-&gt;Edit1-&gt;Text);

fahrenheit=celsius+3;

Form1-&gt;Edit2-&gt;Text=FloatToStr(fahrenheit);

}
//---------------------------------------------------------------------------
</code></pre>
<p>wenn ich diese Zeile:</p>
<pre><code class="language-cpp">Form1-&gt;Edit2-&gt;Text=FloatToStr(fahrenheit);
</code></pre>
<p>so um schreibe: [CPP]Form1-&gt;Edit2-&gt;Text=(fahrenheit);[C/PP]</p>
<p>funktioniert das Programm ja auch.</p>
<p>Jetzt meine frage, gibt es da irgendwelche vor oder nachteile wenn man das FloatToStr da mit reinschreibt?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395295</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395295</guid><dc:creator><![CDATA[Bassmaster]]></dc:creator><pubDate>Wed, 31 Oct 2007 14:51:32 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Source Code on Wed, 31 Oct 2007 14:54:35 GMT]]></title><description><![CDATA[<p>Du kannst auch schreiben:</p>
<pre><code class="language-cpp">Form1-&gt;Edit2-&gt;Text=fahrenheit;
</code></pre>
<p>Die Tedit-Komponente kann int und String Zeichenketten in der Eigenschaft -&gt;Text verarbeiten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395317</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395317</guid><dc:creator><![CDATA[keinpasswortimkopf]]></dc:creator><pubDate>Wed, 31 Oct 2007 14:54:35 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Source Code on Wed, 31 Oct 2007 14:57:16 GMT]]></title><description><![CDATA[<p>P.S.:<br />
das Form1-&gt; kannst Du weglassen, wenn Du auf der Form bist und ich denke Dein Prog hat nur eine Form.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395321</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395321</guid><dc:creator><![CDATA[keinpasswortimkopf]]></dc:creator><pubDate>Wed, 31 Oct 2007 14:57:16 GMT</pubDate></item><item><title><![CDATA[Reply to Frage zu Source Code on Wed, 31 Oct 2007 15:00:31 GMT]]></title><description><![CDATA[<p>Ok thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1395326</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1395326</guid><dc:creator><![CDATA[Bassmaster]]></dc:creator><pubDate>Wed, 31 Oct 2007 15:00:31 GMT</pubDate></item></channel></rss>