<?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[Messagebox wenn Eingabewert fehlt]]></title><description><![CDATA[<p>Hallo</p>
<p>habe heut für einen Bekannten von mir ein Programm zur Sinus,Cosinus und Tangensberechnung erstellt! Das Programm geht soweit nur eine Frage habe ich noch und zwar wie bekomm ich das hin dass eine Messagebox erscheint wenn man vergisst den Winkel als Eingabewert einzugeben?</p>
<p>Falls diese Thema schon vorhande sein sollte sorry hab beim suchen nichts gefunden!</p>
<p>Schonmal danke für eure Hilfe<br />
Sandra</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/197396/messagebox-wenn-eingabewert-fehlt</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 16:38:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/197396.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Nov 2007 23:06:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Messagebox wenn Eingabewert fehlt on Fri, 09 Nov 2007 23:06:44 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>habe heut für einen Bekannten von mir ein Programm zur Sinus,Cosinus und Tangensberechnung erstellt! Das Programm geht soweit nur eine Frage habe ich noch und zwar wie bekomm ich das hin dass eine Messagebox erscheint wenn man vergisst den Winkel als Eingabewert einzugeben?</p>
<p>Falls diese Thema schon vorhande sein sollte sorry hab beim suchen nichts gefunden!</p>
<p>Schonmal danke für eure Hilfe<br />
Sandra</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1400648</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400648</guid><dc:creator><![CDATA[Bloody_Kiss]]></dc:creator><pubDate>Fri, 09 Nov 2007 23:06:44 GMT</pubDate></item><item><title><![CDATA[Reply to Messagebox wenn Eingabewert fehlt on Sat, 10 Nov 2007 08:38:50 GMT]]></title><description><![CDATA[<p>Hallo Sandra,</p>
<p>in welcher Umgebung arbeitest Du?<br />
Ist das eine Konsolenanwendung oder ein Windows-Projekt?</p>
<p>Gruß, Doug_HH</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1400716</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400716</guid><dc:creator><![CDATA[Doug_HH]]></dc:creator><pubDate>Sat, 10 Nov 2007 08:38:50 GMT</pubDate></item><item><title><![CDATA[Reply to Messagebox wenn Eingabewert fehlt on Sat, 10 Nov 2007 10:38:44 GMT]]></title><description><![CDATA[<p>Unter Windows rufst du einfach die Funktion &quot;MessageBox&quot; auf (siehe MSDN), die ist in der &lt;windows.h&gt; deklariert <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/1400763</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400763</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Sat, 10 Nov 2007 10:38:44 GMT</pubDate></item><item><title><![CDATA[Reply to Messagebox wenn Eingabewert fehlt on Sat, 10 Nov 2007 15:10:36 GMT]]></title><description><![CDATA[<p>Wenn Du in der Konsole arbeiten solltest, wird das mit der MessageBox nicht funktionieren.<br />
Weil die Konsole keine Grafische Oberfläche hat.<br />
Dann solltest Du noch Abfragen, ob der String vom Eingabefeld leer ist, wenn Du nicht in der Konsole arbeitest.<br />
Lass uns doch erstmal die Frage klären, in welcher Umgebung das Programm entwickelt wurde. <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>Gruß, René</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1400950</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400950</guid><dc:creator><![CDATA[Doug_HH]]></dc:creator><pubDate>Sat, 10 Nov 2007 15:10:36 GMT</pubDate></item><item><title><![CDATA[Reply to Messagebox wenn Eingabewert fehlt on Sat, 10 Nov 2007 15:15:25 GMT]]></title><description><![CDATA[<p>Naja die Messagebox an sich ist ja nicht das Problem das hab ich schon des öfetren gemacht ich weiß nur net wie ich abfragen kann ob das Eingabefeld leer ist oder nicht und es ist ne ganz simple Windows-Anwendung die ich mach!</p>
<p>Hier mal mein Programmcode bis jetzt:</p>
<pre><code>//---------------------------------------------------------------------------

#include &lt;vcl.h&gt;
#pragma hdrstop
#include &lt;math.h&gt;
#include &quot;Unit1.h&quot;
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource &quot;*.dfm&quot;
Tfrmmain *frmmain;
//---------------------------------------------------------------------------
__fastcall Tfrmmain::Tfrmmain(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------

void __fastcall Tfrmmain::BitBtn1Click(TObject *Sender)
{
//Variablendeklaration
float eingabe,ausgabe1,ausgabe2,ausgabe3,ausgabe4,ausgabe5,ausgabe6;

//Eingabeteil (Umwandlung Text-&gt;Variable)
eingabe=StrToFloat(frmmain-&gt;edteingabe-&gt;Text);

//Verarbeitungsteil
ausgabe1=cos(eingabe);
ausgabe2=sin(eingabe);
ausgabe3=tan(eingabe);

//Umwandlung der Rad-Ergebnisse in DEG (Gradmaß)
ausgabe4=cos(eingabe*(3.141592654/180));
ausgabe5=sin(eingabe*(3.141592654/180));
ausgabe6=tan(eingabe*(3.141592654/180));

//Ausgabeteil (Umwandlund der Variable -&gt; Text)
frmmain-&gt;etausgabe1-&gt;Text=FloatToStr(ausgabe1);
frmmain-&gt;edtausgabe2-&gt;Text=FloatToStr(ausgabe2);
frmmain-&gt;edtausgabe3-&gt;Text=FloatToStr(ausgabe3);
frmmain-&gt;edtausgabe4-&gt;Text=FloatToStr(ausgabe4);
frmmain-&gt;edtausgabe5-&gt;Text=FloatToStr(ausgabe5);
frmmain-&gt;edtausgabe6-&gt;Text=FloatToStr(ausgabe6);
}
//---------------------------------------------------------------------------
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1400955</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400955</guid><dc:creator><![CDATA[Bloody_Kiss]]></dc:creator><pubDate>Sat, 10 Nov 2007 15:15:25 GMT</pubDate></item><item><title><![CDATA[Reply to Messagebox wenn Eingabewert fehlt on Sat, 10 Nov 2007 15:21:26 GMT]]></title><description><![CDATA[<p>Der Code hat ja mit Standard-C++ garnichts zu tun.</p>
<p>Im WINAPI- oder VCL-Sunforum kann man dir sicher besser helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1400956</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1400956</guid><dc:creator><![CDATA[Redhead]]></dc:creator><pubDate>Sat, 10 Nov 2007 15:21:26 GMT</pubDate></item><item><title><![CDATA[Reply to Messagebox wenn Eingabewert fehlt on Sun, 11 Nov 2007 12:32:59 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-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html" rel="nofollow">VCL (C++ Builder)</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/1401296</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1401296</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sun, 11 Nov 2007 12:32:59 GMT</pubDate></item><item><title><![CDATA[Reply to Messagebox wenn Eingabewert fehlt on Sun, 11 Nov 2007 14:10:53 GMT]]></title><description><![CDATA[<p>Du willst abfragen, ob kein Text bzw. keine vernünftige Zahl in das Editfeld eingetragen wurde? Da gibt es verschiedene Möglichkeiten:<br />
1. Abfrage, ob Text leer ist:</p>
<pre><code class="language-cpp">if(edteingabe-&gt;Text.IsEmpty())
  ShowMessage(&quot;Bitte geben Sie einen Text ein!&quot;);
</code></pre>
<p>2. Abfrage, ob keine Zahl eingegeben wurde:</p>
<pre><code class="language-cpp">try
{
  eingabe=StrToFloat(edteingabe-&gt;Text);
}
catch(EConvertError &amp;)
{
  ShowMessage(&quot;Bitte geben Sie eine Zahl ein!&quot;);
}
</code></pre>
<p>P.S: 'frmmain-&gt;' solltest du weglassen, da diese Methode ja ein Teil der Klasse 'Tfrmmain' ist.</p>
<p>Bloody Kiss, bist du auch &quot;Type O Negative&quot;Fan?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1401345</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1401345</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Sun, 11 Nov 2007 14:10:53 GMT</pubDate></item></channel></rss>