<?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[Brauche hilfe]]></title><description><![CDATA[<p>Hallo bräuchte mal hilfe</p>
<p>hab jetzt das prog geschreiben und habe keine ahnung wie ich es schaffe das wen buchstaben statt zahlen eingeben werden mir das programm &quot;Falsche Eingabe ausspuckt.</p>
<p>im mom sieht das so bie mir aus</p>
<p>hoffe i-wer kann helfen</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt;

int main()

{

		float a;
		float b;

cout&lt;&lt;&quot;geben sie die geschwindikeit ein   &quot;;
cin&gt;&gt; a;
cout&lt;&lt;&quot;\n\n&quot;;

cout&lt;&lt;&quot;geben sie das Limit ein   &quot;;
cin&gt;&gt; b;
cout&lt;&lt;&quot;\n\n&quot;;

if (a&lt;b )
cout&lt;&lt;&quot;falche eingab&quot;&lt;&lt;endl;

else if (a-5&gt;=b+20)
{
cout&lt;&lt;&quot; 3 Pkt und 50 euro&quot;&lt;&lt;endl;
}
else if(a-5&gt;b)
{
cout&lt;&lt;&quot;15 euro&quot;&lt;&lt;endl;
}
else if (a-5&lt;=b)
{
cout&lt;&lt;&quot;nix&quot;&lt;&lt;endl;
}

cout&lt;&lt;&quot;\n\n&quot;;

return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/199400/brauche-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Mon, 05 Oct 2026 00:19:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/199400.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 02 Dec 2007 17:37:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Brauche hilfe on Sun, 02 Dec 2007 17:37:15 GMT]]></title><description><![CDATA[<p>Hallo bräuchte mal hilfe</p>
<p>hab jetzt das prog geschreiben und habe keine ahnung wie ich es schaffe das wen buchstaben statt zahlen eingeben werden mir das programm &quot;Falsche Eingabe ausspuckt.</p>
<p>im mom sieht das so bie mir aus</p>
<p>hoffe i-wer kann helfen</p>
<pre><code class="language-cpp">#include &lt;iostream.h&gt;

int main()

{

		float a;
		float b;

cout&lt;&lt;&quot;geben sie die geschwindikeit ein   &quot;;
cin&gt;&gt; a;
cout&lt;&lt;&quot;\n\n&quot;;

cout&lt;&lt;&quot;geben sie das Limit ein   &quot;;
cin&gt;&gt; b;
cout&lt;&lt;&quot;\n\n&quot;;

if (a&lt;b )
cout&lt;&lt;&quot;falche eingab&quot;&lt;&lt;endl;

else if (a-5&gt;=b+20)
{
cout&lt;&lt;&quot; 3 Pkt und 50 euro&quot;&lt;&lt;endl;
}
else if(a-5&gt;b)
{
cout&lt;&lt;&quot;15 euro&quot;&lt;&lt;endl;
}
else if (a-5&lt;=b)
{
cout&lt;&lt;&quot;nix&quot;&lt;&lt;endl;
}

cout&lt;&lt;&quot;\n\n&quot;;

return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1413884</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1413884</guid><dc:creator><![CDATA[$!c]]></dc:creator><pubDate>Sun, 02 Dec 2007 17:37:15 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Sun, 02 Dec 2007 18:11:13 GMT]]></title><description><![CDATA[<p>Wie wärs mit:</p>
<pre><code class="language-cpp">else
{
std::cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;
}
</code></pre>
<p>am Ende, sofern was ganz andres eingegeben wurde kommt dann immer &quot;Falsche Eingabe!&quot;</p>
<p>PS: Binde am besten &lt;iostream&gt; ein. Außerdem kann cout und cin gar nicht funktionieren, wenn du std:: nicht mit angibst (oder oben einbinden), also:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1413901</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1413901</guid><dc:creator><![CDATA[Luinechor]]></dc:creator><pubDate>Sun, 02 Dec 2007 18:11:13 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Sun, 02 Dec 2007 18:39:11 GMT]]></title><description><![CDATA[<p>also das Program läuft so ist kein Prob sollte woll erwähnen das es sich um die Autoren edition von c handelt jedenfalls werd ich es so Probieren. aber geht das nicht auch i-wie über char?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1413914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1413914</guid><dc:creator><![CDATA[$!c]]></dc:creator><pubDate>Sun, 02 Dec 2007 18:39:11 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Sun, 02 Dec 2007 18:44:08 GMT]]></title><description><![CDATA[<p>habs probier und das Prog läuft jedoch wen ich es öffne fragt der zwar nach der geschwindigkeit wen ich dan z.B. ha eingebe Fragt er nciht mehr nach limit und spuckt nix aus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1413917</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1413917</guid><dc:creator><![CDATA[$!c]]></dc:creator><pubDate>Sun, 02 Dec 2007 18:44:08 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Sun, 02 Dec 2007 19:07:02 GMT]]></title><description><![CDATA[<p>Wenn du etwas falsches eingibst, dann kann nichts mehr passieren.<br />
Du müsstest dann eine Schleife einbauen (z.B: do-while), damit er immer wieder abfragt.<br />
Ehm, als Compiler könntest du auch <a href="http://www.microsoft.com/germany/msdn/vstudio/products/express/visualc/default.mspx" rel="nofollow">Visual C++ 2005 Express Edition</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1413931</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1413931</guid><dc:creator><![CDATA[Luinechor]]></dc:creator><pubDate>Sun, 02 Dec 2007 19:07:02 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Sun, 02 Dec 2007 19:45:12 GMT]]></title><description><![CDATA[<p>mhh da ich das ja im unterricht schreiben sollte, da laut meines lehrers das i-wie mit char funktionieren soll würd ich gern wissen wie das geht.... leider funktioniert das mit else<br />
{<br />
std::cout &lt;&lt; &quot;Falsche Eingabe!&quot; &lt;&lt; endl;<br />
}</p>
<p>leider nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1413948</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1413948</guid><dc:creator><![CDATA[$!c]]></dc:creator><pubDate>Sun, 02 Dec 2007 19:45:12 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Sun, 02 Dec 2007 19:50:05 GMT]]></title><description><![CDATA[<p>Was genau funktioniert nicht?<br />
Lässt sich das Programm nicht kompilieren?<br />
Geht das Programm, aber wenn man ein Buchstabe eintippt passiert nicht's?</p>
<p>Ansonsten googel mal nach &quot;IsAlpha&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1413949</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1413949</guid><dc:creator><![CDATA[Luinechor]]></dc:creator><pubDate>Sun, 02 Dec 2007 19:50:05 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Sun, 02 Dec 2007 19:48:54 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-18363.html" rel="nofollow">Jochen Kalmbach</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-58.html" rel="nofollow">C++/CLI mit .NET</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</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/1413951</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1413951</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sun, 02 Dec 2007 19:48:54 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Sun, 02 Dec 2007 19:54:34 GMT]]></title><description><![CDATA[<p>doch es läuft ja also der befehl wir auch ausgeführt nur kommt nach dem ich zb. ha eingegen habe gleich zum ende und frag nciht mehr nach dem limit, auch sagt er mir stat Falsche Eingabe, och meno dumm gewählt aber er schreibt &quot;nix&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1413953</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1413953</guid><dc:creator><![CDATA[$!c]]></dc:creator><pubDate>Sun, 02 Dec 2007 19:54:34 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Tue, 04 Dec 2007 20:47:56 GMT]]></title><description><![CDATA[<p>keiner ne idee, schade</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1415035</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1415035</guid><dc:creator><![CDATA[$!c]]></dc:creator><pubDate>Tue, 04 Dec 2007 20:47:56 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Tue, 04 Dec 2007 21:02:25 GMT]]></title><description><![CDATA[<p>Hmm guck einfach ob das lesen erfolgreich war (!std::cin) ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1415045</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1415045</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Tue, 04 Dec 2007 21:02:25 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Tue, 04 Dec 2007 22:40:59 GMT]]></title><description><![CDATA[<p>Versuchs dochmal hiermit!<br />
Aber ist auch keine optimale Lösung!<br />
Aber es geht zumindest mal und erfüllt deine Aufgaben!</p>
<pre><code>#include &lt;cstdlib&gt;
#include &lt;iostream&gt;

using namespace std;

int main(int argc, char *argv[])
{
    bool tempoOK=false;
    bool limitOK=false;
    float tempo=0;
    float limit=0;
    char temp;
    while (!tempoOK)
    {
          cout&lt;&lt;&quot;Bitte geben sie ihr Tempo ein  :&quot;;
          cin&gt;&gt;tempo;
          if (cin.fail()||tempo&lt;0)
          {
             cin.clear();
             cin.ignore();
             system(&quot;cls&quot;);
             cout&lt;&lt;&quot;Es gab einen Fehler bei ihrer Tempoeingabe!!\n\n&quot;;
          }             
          else tempoOK=true;
    }    
    while (!limitOK)
    {
          cout&lt;&lt;&quot;\n\nBitte geben sie das Tempolimit ein  :&quot;;
          cin&gt;&gt;limit;
          if (cin.fail()||limit&lt;=0)
          {
             cin.clear();
             cin.ignore();
             system(&quot;cls&quot;);
             cout&lt;&lt;&quot;Es gab einen Fehler bei ihrer Limiteingabe!!\n\n&quot;;
          }             
          else limitOK=true;
    }  
    cout&lt;&lt;&quot;\n\nIhre Eingaben\nTempo:&quot;&lt;&lt;tempo&lt;&lt;&quot; Limit:&quot;&lt;&lt;limit&lt;&lt;endl&lt;&lt;endl;

    if (tempo&lt;limit )
       cout&lt;&lt;&quot;Sie fahren zu langsam :P&quot;&lt;&lt;endl;

    else if (tempo-5&gt;=limit+20)
    {
     cout&lt;&lt;&quot;3 Pkt und 50 euro&quot;&lt;&lt;endl;
    }
    else if(tempo-5&gt;limit)
    {
     cout&lt;&lt;&quot;15 euro&quot;&lt;&lt;endl;
     }
    else if (tempo-5&lt;=limit)
    {
     cout&lt;&lt;&quot;Sie brauchen nix zu bezahlen&quot;&lt;&lt;endl;
    }

    system(&quot;PAUSE&quot;);
    return EXIT_SUCCESS;
}
</code></pre>
<p>hoffe es kann dir helfen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1415086</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1415086</guid><dc:creator><![CDATA[ilac_cali]]></dc:creator><pubDate>Tue, 04 Dec 2007 22:40:59 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche hilfe on Tue, 18 Dec 2007 10:38:58 GMT]]></title><description><![CDATA[<p>&quot;Brauche hilfe&quot;!!! ICH HABE ECHT AUF DEN ERSTEN BLICK GEWUSST UM WAS ES GEHT. GUT. WEITER SO.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1422474</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1422474</guid><dc:creator><![CDATA[Topicbeschwerer]]></dc:creator><pubDate>Tue, 18 Dec 2007 10:38:58 GMT</pubDate></item></channel></rss>