<?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[automatisches schließen verhindern]]></title><description><![CDATA[<p>HAllo ,<br />
ich mache das tutorial von schornböck und hab n problem die programme schließen automatisch. ICh hab mir auch des FAQ durchegelesen und weiß net wie ich des in das Programm einbinden soll.<br />
Hier is des woran ich hänge:<br />
Beispiel</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
    using namespace std;

    int main()
    {
        cout&lt;&lt;&quot;Bitte geben Sie eine Zahl ein\n&quot;;
        int a;
        cin&gt;&gt;a;
        cout&lt;&lt;&quot;Bitte geben Sie noch eine Zahl ein\n&quot;;
        int b;
        cin&gt;&gt;b;
        cout&lt;&lt;&quot;Bitte geben Sie die letzte Zahl ein\n&quot;;
        int c;
        cin&gt;&gt;c;

        int max=a;

        if(b&gt;max)
        {
            max=b;
        }
        if(c&gt;max)
        {
            max=c;
        }

        int min=a;

        if(b&lt;min)
        {
            min=b;
        }
        if(c&lt;min)
        {
            min=c;
        }

        cout&lt;&lt;&quot;Die größte Zahl ist &quot;&lt;&lt;max&lt;&lt;&quot; und die kleinste ist &quot;&lt;&lt;min&lt;&lt;&quot;\n&quot;;
    }
</code></pre>
<p>Ich weiß des es schon genau des gleiche gibt aber hab keine ahnung was der typ meint</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/174074/automatisches-schließen-verhindern</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 12:12:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/174074.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Feb 2007 17:08:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:08:16 GMT]]></title><description><![CDATA[<p>HAllo ,<br />
ich mache das tutorial von schornböck und hab n problem die programme schließen automatisch. ICh hab mir auch des FAQ durchegelesen und weiß net wie ich des in das Programm einbinden soll.<br />
Hier is des woran ich hänge:<br />
Beispiel</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
    using namespace std;

    int main()
    {
        cout&lt;&lt;&quot;Bitte geben Sie eine Zahl ein\n&quot;;
        int a;
        cin&gt;&gt;a;
        cout&lt;&lt;&quot;Bitte geben Sie noch eine Zahl ein\n&quot;;
        int b;
        cin&gt;&gt;b;
        cout&lt;&lt;&quot;Bitte geben Sie die letzte Zahl ein\n&quot;;
        int c;
        cin&gt;&gt;c;

        int max=a;

        if(b&gt;max)
        {
            max=b;
        }
        if(c&gt;max)
        {
            max=c;
        }

        int min=a;

        if(b&lt;min)
        {
            min=b;
        }
        if(c&lt;min)
        {
            min=c;
        }

        cout&lt;&lt;&quot;Die größte Zahl ist &quot;&lt;&lt;max&lt;&lt;&quot; und die kleinste ist &quot;&lt;&lt;min&lt;&lt;&quot;\n&quot;;
    }
</code></pre>
<p>Ich weiß des es schon genau des gleiche gibt aber hab keine ahnung was der typ meint</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233501</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233501</guid><dc:creator><![CDATA[BlauerTeufel226]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:08:16 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:10:26 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>du hast die FAQ gelesen? Gut. Warum nimmst du nicht einfach eins von den beiden Codestücken und platzierst sie an's Ende von main (vor return 0; )?</p>
<p>MfG</p>
<p>GPC</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233504</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233504</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:10:26 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:12:35 GMT]]></title><description><![CDATA[<p>gleiche? <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-173888.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-173888.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233508</guid><dc:creator><![CDATA[LeGaN]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:12:35 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:13:58 GMT]]></title><description><![CDATA[<p>Mir ging grad der gleiche Gedanke durch den Kopf <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1233509</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233509</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:13:58 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:14:16 GMT]]></title><description><![CDATA[<p>Woher soll ich die codestücke nehmen aus dem FAQ??<br />
Wenn ja wie soll ich des einbinden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233511</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233511</guid><dc:creator><![CDATA[BlauerTeufel226]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:14:16 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:18:55 GMT]]></title><description><![CDATA[<p>BlauerTeufel226 schrieb:</p>
<blockquote>
<p>Woher soll ich die codestücke nehmen aus dem FAQ??</p>
</blockquote>
<p>Es gibt in der FAQ zwei Blöcke mit C++ Code, einen davon solltest du wählen. Noch mal der FAQ-Link: <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-111042.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-111042.html</a></p>
<blockquote>
<p>Wenn ja wie soll ich des einbinden.</p>
</blockquote>
<p>Das sagte ich bereits und im anderen Thread wurde's auch schon totdiskutiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233514</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233514</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:18:55 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:19:40 GMT]]></title><description><![CDATA[<p>BlauerTeufel226 schrieb:</p>
<blockquote>
<p>HAllo ,<br />
ich mache das tutorial von schornböck und hab n problem die programme schließen automatisch. ICh hab mir auch des FAQ durchegelesen und weiß net wie ich des in das Programm einbinden soll.<br />
Hier is des woran ich hänge:<br />
Beispiel</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
    using namespace std;

    int main()
    {
        cout&lt;&lt;&quot;Bitte geben Sie eine Zahl ein\n&quot;;
        int a;
        cin&gt;&gt;a;
        cout&lt;&lt;&quot;Bitte geben Sie noch eine Zahl ein\n&quot;;
        int b;
        cin&gt;&gt;b;
        cout&lt;&lt;&quot;Bitte geben Sie die letzte Zahl ein\n&quot;;
        int c;
        cin&gt;&gt;c;

        int max=a;

        if(b&gt;max)
        {
            max=b;
        }
        if(c&gt;max)
        {
            max=c;
        }

        int min=a;

        if(b&lt;min)
        {
            min=b;
        }
        if(c&lt;min)
        {
            min=c;
        }

        cout&lt;&lt;&quot;Die größte Zahl ist &quot;&lt;&lt;max&lt;&lt;&quot; und die kleinste ist &quot;&lt;&lt;min&lt;&lt;&quot;\n&quot;;
    }

        //cin.get();
        //oder getch() von der #include &lt;conio.h&gt;
        //oder einfach im dos-fenster öffnen
</code></pre>
<p>Ich weiß des es schon genau des gleiche gibt aber hab keine ahnung was der typ meint</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1233516</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233516</guid><dc:creator><![CDATA[Stelfer]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:19:40 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:23:39 GMT]]></title><description><![CDATA[<p>SO?????</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
    using namespace std;

    int main()
    {
        cout&lt;&lt;&quot;Bitte geben Sie eine Zahl ein\n&quot;;
        int a;
        cin&gt;&gt;a;
        cout&lt;&lt;&quot;Bitte geben Sie noch eine Zahl ein\n&quot;;
        int b;
        cin&gt;&gt;b;
        cout&lt;&lt;&quot;Bitte geben Sie die letzte Zahl ein\n&quot;;
        int c;
        cin&gt;&gt;c;

        int max=a;

        if(b&gt;max)
        {
            max=b;
        }
        if(c&gt;max)
        {
            max=c;
        }

        int min=a;

        if(b&lt;min)
        {
            min=b;
        }
        if(c&lt;min)
        {
            min=c;
        }

        cout&lt;&lt;&quot;Die größte Zahl ist &quot;&lt;&lt;max&lt;&lt;&quot; und die kleinste ist &quot;&lt;&lt;min&lt;&lt;&quot;\n&quot;;
void wait ();
{
    std::cin.clear();
    std::cin.ignore(std::cin.rdbuf()-&gt;in_avail());
    std::cin.get();
    return 0;
}
    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1233518</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233518</guid><dc:creator><![CDATA[BlauerTeufel226]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:23:39 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:33:01 GMT]]></title><description><![CDATA[<p>Hi,<br />
Na eher so,</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
    using namespace std;

void wait ();

    int main()
    {
        cout&lt;&lt;&quot;Bitte geben Sie eine Zahl ein\n&quot;;
        int a;
        cin&gt;&gt;a;
        cout&lt;&lt;&quot;Bitte geben Sie noch eine Zahl ein\n&quot;;
        int b;
        cin&gt;&gt;b;
        cout&lt;&lt;&quot;Bitte geben Sie die letzte Zahl ein\n&quot;;
        int c;
        cin&gt;&gt;c;

        int max=a;

        if(b&gt;max)
        {
            max=b;
        }
        if(c&gt;max)
        {
            max=c;
        }

        int min=a;

        if(b&lt;min)
        {
            min=b;
        }
        if(c&lt;min)
        {
            min=c;
        }

        cout&lt;&lt;&quot;Die größte Zahl ist &quot;&lt;&lt;max&lt;&lt;&quot; und die kleinste ist &quot;&lt;&lt;min&lt;&lt;&quot;\n&quot;;

        wait();
    }
void wait ()
{
    std::cin.clear();
    std::cin.ignore(std::cin.rdbuf()-&gt;in_avail());
    std::cin.get();
    return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1233523</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233523</guid><dc:creator><![CDATA[Cappo]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:33:01 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 18:04:12 GMT]]></title><description><![CDATA[<p>Du sollst die Funktion aufrufen, nicht neu definieren.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
    using namespace std;

void wait ()
{
    std::cin.clear();
    std::cin.ignore(std::cin.rdbuf()-&gt;in_avail());
    std::cin.get();
}
    int main()
    {
        cout&lt;&lt;&quot;Bitte geben Sie eine Zahl ein\n&quot;;
        int a;
        cin&gt;&gt;a;
        cout&lt;&lt;&quot;Bitte geben Sie noch eine Zahl ein\n&quot;;
        int b;
        cin&gt;&gt;b;
        cout&lt;&lt;&quot;Bitte geben Sie die letzte Zahl ein\n&quot;;
        int c;
        cin&gt;&gt;c;

        int max=a;

        if(b&gt;max)
        {
            max=b;
        }
        if(c&gt;max)
        {
            max=c;
        }

        int min=a;

        if(b&lt;min)
        {
            min=b;
        }
        if(c&lt;min)
        {
            min=c;
        }

        cout&lt;&lt;&quot;Die größte Zahl ist &quot;&lt;&lt;max&lt;&lt;&quot; und die kleinste ist &quot;&lt;&lt;min&lt;&lt;&quot;\n&quot;;
       wait();
    }
</code></pre>
<p>Lies mal das.<br />
<a href="http://tutorial.schornboeck.net/funktionen2.htm" rel="nofollow">http://tutorial.schornboeck.net/funktionen2.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233525</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233525</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 22 Feb 2007 18:04:12 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:36:56 GMT]]></title><description><![CDATA[<p>Geht nicht.<br />
Compiler zeigt die Fehler an<br />
C:\Dev-Cpp\Unbenannt1.cpp In function `void wait()':<br />
C:\Dev-Cpp\Unbenannt1.cpp return-statement with a value, in function returning 'void'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233527</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233527</guid><dc:creator><![CDATA[BlauerTeufel226]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:36:56 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:41:46 GMT]]></title><description><![CDATA[<p>Void ist ja kein richtiger Datentyp, darf also nichts zurückgeben. Probier mal das : <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>
<pre><code class="language-cpp">#include &lt;iostream&gt; 
    using namespace std; 

    int main() 
    { 
        cout&lt;&lt;&quot;Bitte geben Sie eine Zahl ein\n&quot;; 
        int a; 
        cin&gt;&gt;a; 
        cout&lt;&lt;&quot;Bitte geben Sie noch eine Zahl ein\n&quot;; 
        int b; 
        cin&gt;&gt;b; 
        cout&lt;&lt;&quot;Bitte geben Sie die letzte Zahl ein\n&quot;; 
        int c; 
        cin&gt;&gt;c; 

        int max=a; 

        if(b&gt;max) 
        { 
            max=b; 
        } 
        if(c&gt;max) 
        { 
            max=c; 
        } 

        int min=a; 

        if(b&lt;min) 
        { 
            min=b; 
        } 
        if(c&lt;min) 
        { 
            min=c; 
        } 

        cout&lt;&lt;&quot;Die größte Zahl ist &quot;&lt;&lt;max&lt;&lt;&quot; und die kleinste ist &quot;&lt;&lt;min&lt;&lt;&quot;\n&quot;; 
void wait (); 
{ 
    std::cin.clear(); 
    std::cin.ignore(std::cin.rdbuf()-&gt;in_avail()); 
    std::cin.get(); 
} 
    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1233528</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233528</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:41:46 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:41:03 GMT]]></title><description><![CDATA[<p>Des von Braunstein geht auch nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233529</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233529</guid><dc:creator><![CDATA[BlauerTeufel226]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:41:03 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:43:46 GMT]]></title><description><![CDATA[<p>von mikey auch nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233532</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233532</guid><dc:creator><![CDATA[BlauerTeufel226]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:43:46 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:46:27 GMT]]></title><description><![CDATA[<p>Sry, probier das:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt; 
using namespace std; 

void wait ()
{ 
    cin.clear(); 
    cin.ignore(std::cin.rdbuf()-&gt;in_avail()); 
    cin.get(); 
} 
    int main() 
    { 
        cout&lt;&lt;&quot;Bitte geben Sie eine Zahl ein\n&quot;; 
        int a; 
        cin&gt;&gt;a; 
        cout&lt;&lt;&quot;Bitte geben Sie noch eine Zahl ein\n&quot;; 
        int b; 
        cin&gt;&gt;b; 
        cout&lt;&lt;&quot;Bitte geben Sie die letzte Zahl ein\n&quot;; 
        int c; 
        cin&gt;&gt;c; 

        int max=a; 

        if(b&gt;max) 
        { 
            max=b; 
        } 
        if(c&gt;max) 
        { 
            max=c; 
        } 

        int min=a; 

        if(b&lt;min) 
        { 
            min=b; 
        } 
        if(c&lt;min) 
        { 
            min=c; 
        } 

        cout&lt;&lt;&quot;Die größte Zahl ist &quot;&lt;&lt;max&lt;&lt;&quot; und die kleinste ist &quot;&lt;&lt;min&lt;&lt;&quot;\n&quot;; 

    }
</code></pre>
<p><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/1233534</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233534</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:46:27 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:48:56 GMT]]></title><description><![CDATA[<p>OH NEIN!!!!!!!!!!!<br />
DES GEHT AUCH NICHT!!!!!!!!!!!!!!!!!!!!!!!!!!!<br />
SORRY BIN VERZWEIFELT<br />
KANN ICH DES NICHT ODER MACHT IHR ES FALSCH</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233536</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233536</guid><dc:creator><![CDATA[BlauerTeufel226]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:48:56 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:51:01 GMT]]></title><description><![CDATA[<p>Ach, wär nicht schlecht, wenn ich die Funktion aufgerufen hätte:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt; 
using namespace std; 

void wait () 
{ 
    cin.clear(); 
    cin.ignore(std::cin.rdbuf()-&gt;in_avail()); 
    cin.get(); 
} 
    int main() 
    { 
        cout&lt;&lt;&quot;Bitte geben Sie eine Zahl ein\n&quot;; 
        int a; 
        cin&gt;&gt;a; 
        cout&lt;&lt;&quot;Bitte geben Sie noch eine Zahl ein\n&quot;; 
        int b; 
        cin&gt;&gt;b; 
        cout&lt;&lt;&quot;Bitte geben Sie die letzte Zahl ein\n&quot;; 
        int c; 
        cin&gt;&gt;c; 

        int max=a; 

        if(b&gt;max) 
        { 
            max=b; 
        } 
        if(c&gt;max) 
        { 
            max=c; 
        } 

        int min=a; 

        if(b&lt;min) 
        { 
            min=b; 
        } 
        if(c&lt;min) 
        { 
            min=c; 
        } 

        cout&lt;&lt;&quot;Die größte Zahl ist &quot;&lt;&lt;max&lt;&lt;&quot; und die kleinste ist &quot;&lt;&lt;min&lt;&lt;&quot;\n&quot;; 
        wait ();
    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1233538</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233538</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:51:01 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:52:17 GMT]]></title><description><![CDATA[<p>LALALALALA GEHT AUCH NICHT *Buch und lapi auf den Boden schmeiß*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233540</guid><dc:creator><![CDATA[BlauerTeufel226]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:52:17 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:57:13 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt; 
#include &lt;conio.h&gt;
using namespace std; 

    int main() 
    { 
        cout&lt;&lt;&quot;Bitte geben Sie eine Zahl ein\n&quot;; 
        int a; 
        cin&gt;&gt;a; 
        cout&lt;&lt;&quot;Bitte geben Sie noch eine Zahl ein\n&quot;; 
        int b; 
        cin&gt;&gt;b; 
        cout&lt;&lt;&quot;Bitte geben Sie die letzte Zahl ein\n&quot;; 
        int c; 
        cin&gt;&gt;c; 

        int max=a; 

        if(b&gt;max) 
        { 
            max=b; 
        } 
        if(c&gt;max) 
        { 
            max=c; 
        } 

        int min=a; 

        if(b&lt;min) 
        { 
            min=b; 
        } 
        if(c&lt;min) 
        { 
            min=c; 
        } 

        cout&lt;&lt;&quot;Die größte Zahl ist &quot;&lt;&lt;max&lt;&lt;&quot; und die kleinste ist &quot;&lt;&lt;min&lt;&lt;&quot;\n&quot;; 
        getch ();
    }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1233542</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233542</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:57:13 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 17:58:14 GMT]]></title><description><![CDATA[<p>So, sorry für die Peinlichkeit aber ich hab mehr blind als aufmerksam geholfen ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233545</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233545</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Thu, 22 Feb 2007 17:58:14 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 18:02:02 GMT]]></title><description><![CDATA[<p>JUHU es geht,<br />
.<br />
kannst du mir nur noch erklären was des bedeutet</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233549</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233549</guid><dc:creator><![CDATA[BlauerTeufel226]]></dc:creator><pubDate>Thu, 22 Feb 2007 18:02:02 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 18:05:30 GMT]]></title><description><![CDATA[<p>Lies dir bitte die Tutorials durch, sonst wirst du es nie verstehen.<br />
Ich habe doch glatt auch bloß kopiert und nicht nachgeschaut. Habs korrigiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233550</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233550</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 22 Feb 2007 18:05:30 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 18:06:24 GMT]]></title><description><![CDATA[<p>Joah klar, kein Problem. Also &quot;getchar&quot; wartet auf eine Eingabe. Das Besondere an dieser Funktion ist, dass die kein &quot;Echo&quot; zurückliefert, das heist, es wird bei einer Eingabe kein Zeichen auf dem Bildschirm ausgegeben. Zudem musst du die Eingabe nicht mit &quot;Enter&quot; bestätigen. Logischerweise kann &quot;getch&quot; somit nur einzelne Charakter, bzw. Buchstaben einlesen, mehr nicht. Deklariert ist getch in conio.h, deshalb musst du es extra einbinden !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233551</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233551</guid><dc:creator><![CDATA[mikey]]></dc:creator><pubDate>Thu, 22 Feb 2007 18:06:24 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 18:07:37 GMT]]></title><description><![CDATA[<p>Super, danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233552</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233552</guid><dc:creator><![CDATA[BlauerTeufel226]]></dc:creator><pubDate>Thu, 22 Feb 2007 18:07:37 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 18:08:52 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/12957">@mikey</a><br />
Du hast vergessen zu erwähnen, das getchar() nicht standardkonform ist und somit nicht von allen Compilern unterstützt wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233554</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233554</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 22 Feb 2007 18:08:52 GMT</pubDate></item><item><title><![CDATA[Reply to automatisches schließen verhindern on Thu, 22 Feb 2007 18:09:08 GMT]]></title><description><![CDATA[<p>mikey schrieb:</p>
<blockquote>
<p>Deklariert ist getch in conio.h, deshalb musst du es extra einbinden !</p>
</blockquote>
<p>Und genau daher soll man getch (bzw. conio.h - Funktionen generell) meiden. Es ist compilerabhängig, ob man die Funktion überhaupt hat!<br />
Die in der FAQ geposteten Lösungen funktionieren sicher. Ich kann's hier ja auch kompilieren. Aber da der Threadersteller (der sich lieber mal mit 'ner einfacheren Sprache beschäftigen sollte) immer nur &quot;geht nicht&quot; anstatt &quot;geht nicht, Compiler sagt: &quot; geschrieben hätte, hätte man das auch gescheit zu Ende bringen können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1233556</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1233556</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Thu, 22 Feb 2007 18:09:08 GMT</pubDate></item></channel></rss>