<?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[Grafische Benutzeroberfläche C++, if else Abfragen]]></title><description><![CDATA[<p>Hallo Leute, <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Ich möchte gern ein kleines Navigationssystem mit C++ programmieren. Natürlich mit Grafischer Oberfläche. Habe die Grafik fertig erstellt und komme nun mit den Befehlen für die einzelnen Objekte nicht weiter.</p>
<p>Ich habe im Formular 3 Edits und 1 Button eingefügt. Folgendes will ich programmieren:</p>
<p>1. Edit -&gt; Start wird eingegeben<br />
2. Edit -&gt; Ziel wird eingegeben</p>
<p>Dann drücke ich den Button</p>
<p>3. Edit -&gt; Wegbeschreibung soll ausgegeben werden</p>
<p>z.B.</p>
<p>if Edit1= OrtA und Edit2= OrtB</p>
<p>dann Edit3 ausgabe: Webbeschreibung.</p>
<p>Wie kann ich das programmieren? Welche Befehle brauche ich dafür? <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>
<p>Danke!</p>
<p>lg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/233801/grafische-benutzeroberfläche-c-if-else-abfragen</link><generator>RSS for Node</generator><lastBuildDate>Thu, 24 Sep 2026 15:10:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/233801.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Feb 2009 13:27:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 13:27:17 GMT]]></title><description><![CDATA[<p>Hallo Leute, <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Ich möchte gern ein kleines Navigationssystem mit C++ programmieren. Natürlich mit Grafischer Oberfläche. Habe die Grafik fertig erstellt und komme nun mit den Befehlen für die einzelnen Objekte nicht weiter.</p>
<p>Ich habe im Formular 3 Edits und 1 Button eingefügt. Folgendes will ich programmieren:</p>
<p>1. Edit -&gt; Start wird eingegeben<br />
2. Edit -&gt; Ziel wird eingegeben</p>
<p>Dann drücke ich den Button</p>
<p>3. Edit -&gt; Wegbeschreibung soll ausgegeben werden</p>
<p>z.B.</p>
<p>if Edit1= OrtA und Edit2= OrtB</p>
<p>dann Edit3 ausgabe: Webbeschreibung.</p>
<p>Wie kann ich das programmieren? Welche Befehle brauche ich dafür? <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>
<p>Danke!</p>
<p>lg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660467</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660467</guid><dc:creator><![CDATA[abc55]]></dc:creator><pubDate>Mon, 09 Feb 2009 13:27:17 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 14:05:37 GMT]]></title><description><![CDATA[<p>Probier folgendes:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &quot;Meine Bibliotheken.h&quot;

using namespace std;

void BerechneWeg(const string &amp;start, const string &amp;ziel);

int main()
{
    string start, ziel;

    cout &lt;&lt; &quot;Start: &quot;;
    cin &gt;&gt; start;

    cout &lt;&lt; &quot;Ziel: &quot;;
    cin &gt;&gt; ziel;

    BerechneWeg();
}

void BerechneWeg(const string &amp;start, const string &amp;ziel)
{
    throw NotImplementedException();
}
</code></pre>
<p>Jetzt musst du nur noch die Klasse NotImplementedException erstellen (einfach von std::exception ableiten) und in &quot;Meine Bibliotheken.h&quot; einbinden. Fertig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660486</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660486</guid><dc:creator><![CDATA[Hakan B.]]></dc:creator><pubDate>Mon, 09 Feb 2009 14:05:37 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 14:06:56 GMT]]></title><description><![CDATA[<p>PS: GUI is for noobs. Console applications rock!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660487</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660487</guid><dc:creator><![CDATA[Hakan B.]]></dc:creator><pubDate>Mon, 09 Feb 2009 14:06:56 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 14:08:02 GMT]]></title><description><![CDATA[<p>kommt auf Betriebssystem &amp; Entwicklungsumgebung an. Im GUI-Forum gibts eine FAQ dazu, welche APIs du verwenden kannst. Fuer die Wegfindung gibts auch genug Algorithmen, Typisch sind A* (A Star) oder Dijkstra. Google ist dein Freund.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660490</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660490</guid><dc:creator><![CDATA[Blue-Tiger]]></dc:creator><pubDate>Mon, 09 Feb 2009 14:08:02 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 14:08:31 GMT]]></title><description><![CDATA[<p>Erstmal: falsches Forum! Für solche Geschichten musst du in WinAPI- oder MFC-Forum (wenn du mit dem Visual Studio arbeitest). <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>
<p>Wenn einer deinen Button klickt, dann wird ein Eventhandler aufgerufen (den du natürlich definieren musst). Darin kannst du deine Berechnungen durchführen und das Ergebnis per SetDlgItemText/SetWindowText ins dritte Edit Feld schreiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660492</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Mon, 09 Feb 2009 14:08:31 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 14:08:44 GMT]]></title><description><![CDATA[<p>Hakan B. schrieb:</p>
<blockquote>
<p>PS: GUI is for noobs. Console applications rock!</p>
</blockquote>
<p>mag sein aber eine GUI ist benutzerfreundlicher <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>
<p>wie erstellst du die gui? WinApi oder eine andere Lib?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660493</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660493</guid><dc:creator><![CDATA[helferlein]]></dc:creator><pubDate>Mon, 09 Feb 2009 14:08:44 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 14:12:22 GMT]]></title><description><![CDATA[<p>helferlein schrieb:</p>
<blockquote>
<p>Hakan B. schrieb:</p>
<blockquote>
<p>PS: GUI is for noobs. Console applications rock!</p>
</blockquote>
<p>mag sein aber eine GUI ist benutzerfreundlicher <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>
</blockquote>
<p>Ach was, GUIs machen uns alle nur dick und weichlich. Ich weiß, wovon ich spreche.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660498</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660498</guid><dc:creator><![CDATA[Hakan B.]]></dc:creator><pubDate>Mon, 09 Feb 2009 14:12:22 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 14:19:34 GMT]]></title><description><![CDATA[<p>Hakan B. schrieb:</p>
<blockquote>
<p>helferlein schrieb:</p>
<blockquote>
<p>Hakan B. schrieb:</p>
<blockquote>
<p>PS: GUI is for noobs. Console applications rock!</p>
</blockquote>
<p>mag sein aber eine GUI ist benutzerfreundlicher <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>
</blockquote>
<p>Ach was, GUIs machen uns alle nur dick und weichlich. Ich weiß, wovon ich spreche.</p>
</blockquote>
<p>Dann schreib mal eine grafische Anwendung (Bildbearbeitung?) ohne grafisches Interface. Ich bin gespannt... <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/1660502</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660502</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Mon, 09 Feb 2009 14:19:34 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 14:22:27 GMT]]></title><description><![CDATA[<p>Wer will denn sowas? Wer sich Bilder anguckt, ist nur zu faul zum Lesen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660504</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660504</guid><dc:creator><![CDATA[Hakan B.]]></dc:creator><pubDate>Mon, 09 Feb 2009 14:22:27 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 14:23:26 GMT]]></title><description><![CDATA[<p>_matze schrieb:</p>
<blockquote>
<p>Dann schreib mal eine grafische Anwendung (Bildbearbeitung?) ohne grafisches Interface. Ich bin gespannt... <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>
</blockquote>
<p>Pff gibts doch schon <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
<a href="http://www.imagemagick.org" rel="nofollow">&gt;&gt; click &lt;&lt;</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660506</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660506</guid><dc:creator><![CDATA[franz]]></dc:creator><pubDate>Mon, 09 Feb 2009 14:23:26 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 14:26:05 GMT]]></title><description><![CDATA[<p>franz schrieb:</p>
<blockquote>
<p>_matze schrieb:</p>
<blockquote>
<p>Dann schreib mal eine grafische Anwendung (Bildbearbeitung?) ohne grafisches Interface. Ich bin gespannt... <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>
</blockquote>
<p>Pff gibts doch schon <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
<a href="http://www.imagemagick.org" rel="nofollow">&gt;&gt; click &lt;&lt;</a></p>
</blockquote>
<p>Nice! Ich glaube, Photoshop kann einpacken! <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="😉"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660513</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660513</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Mon, 09 Feb 2009 14:26:05 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 14:27:26 GMT]]></title><description><![CDATA[<p>Hakan B. schrieb:</p>
<blockquote>
<p>Wer will denn sowas? Wer sich Bilder anguckt, ist nur zu faul zum Lesen.</p>
</blockquote>
<p>Da ich gar nicht lesen kann, wäre es nett, wenn du mein Bedürfnis, Bilder zu schauen, nicht unterbewerten würdest.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660517</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Mon, 09 Feb 2009 14:27:26 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 16:17:37 GMT]]></title><description><![CDATA[<p>ich komm net weiter...<br />
bin noch ein Anfänger^^</p>
<p>also...</p>
<p>ich starte borland c++<br />
füge im Formular 3 Edits und ein Button ein</p>
<p>wenn ich jetzt auf den button doppelklickte, dann steht da:</p>
<p>void __fastcall TForm1::Button1Click(TObject *Sender)<br />
{<br />
// was kommt hier rein???<br />
}</p>
<p>ich will in Edit 1 und 2 die beiden städte eingeben, auf den button klicken, und dann soll auf Edit 3 ein Text rauskommen, im prinzip ganz einfach, ich kenn nur die befehle nicht.</p>
<p>Der gesamte code sollte dann so aussehen: nur mit den richtigen Befehlen drin.</p>
<p>//---------------------------------------------------------------------------</p>
<p>#include &lt;vcl.h&gt;<br />
#pragma hdrstop</p>
<p>#include &quot;Unit1.h&quot;<br />
//---------------------------------------------------------------------------<br />
#pragma package(smart_init)<br />
#pragma resource &quot;*.dfm&quot;<br />
TForm1 <em>Form1;<br />
//---------------------------------------------------------------------------<br />
__fastcall TForm1::TForm1(TComponent</em> Owner)<br />
: TForm(Owner)<br />
{<br />
}<br />
//---------------------------------------------------------------------------</p>
<p>void __fastcall TForm1::Button1Click(TObject *Sender)<br />
{</p>
<p>}<br />
//---------------------------------------------------------------------------</p>
<p>void __fastcall TForm1::Edit1Change(TObject *Sender)<br />
{</p>
<p>}<br />
//---------------------------------------------------------------------------</p>
<p>void __fastcall TForm1::Edit2Change(TObject *Sender)<br />
{</p>
<p>}<br />
//---------------------------------------------------------------------------</p>
<p>void __fastcall TForm1::Edit3Change(TObject *Sender)<br />
{</p>
<p>}<br />
//---------------------------------------------------------------------------</p>
<p>Danke für eure Hilfe</p>
<p>lg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660577</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660577</guid><dc:creator><![CDATA[abc55]]></dc:creator><pubDate>Mon, 09 Feb 2009 16:17:37 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Mon, 09 Feb 2009 16:40:30 GMT]]></title><description><![CDATA[<p>Wenn du noch Anfänger bist, solltest du etwas einfacheres versuchen als eine Wegbeschreibung. So etwas ist nämlich ein bisschen kompliziert und nicht gerade ein trivialer Algorithmus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660599</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660599</guid><dc:creator><![CDATA[Jay Jay]]></dc:creator><pubDate>Mon, 09 Feb 2009 16:40:30 GMT</pubDate></item><item><title><![CDATA[Reply to Grafische Benutzeroberfläche C++, if else Abfragen on Tue, 10 Feb 2009 06:16:36 GMT]]></title><description><![CDATA[<p>Für den Builder gibts ein eigenes Board:</p>
<p><a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html" rel="nofollow">http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1660872</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1660872</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Tue, 10 Feb 2009 06:16:36 GMT</pubDate></item></channel></rss>