<?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[isdigit()]]></title><description><![CDATA[<p>In Bezug auf mein thema vom 1.6. (Eingabeüberprüfung).<br />
Wie setzt man hierbei isdigit() ein um die Eingabe zu prüfen auf Richtigkeit.Gebt mir doch bitte ein kleines Beispiel.Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/36451/isdigit</link><generator>RSS for Node</generator><lastBuildDate>Sat, 26 Sep 2026 00:30:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/36451.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Jun 2003 14:04:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 14:04:00 GMT]]></title><description><![CDATA[<p>In Bezug auf mein thema vom 1.6. (Eingabeüberprüfung).<br />
Wie setzt man hierbei isdigit() ein um die Eingabe zu prüfen auf Richtigkeit.Gebt mir doch bitte ein kleines Beispiel.Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/266190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266190</guid><dc:creator><![CDATA[quarks]]></dc:creator><pubDate>Mon, 02 Jun 2003 14:04:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 14:21:00 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">//

#include &lt;iostream&gt; // Standard I/O-Stream-Objekte und -Operatoren
#include &lt;cstdlib&gt;  // String-Funktionen von C
#include &lt;cctype&gt;   // Zeichenklassifizierung; isalpha(), isdigit(), isalnum(), isspace()
using namespace std;

void main()
{
    char ch;
    cout&lt;&lt;&quot;Geben Sie ein Zeichen ein: &quot;;
    cin.get(ch);
    if(isalpha(ch)) cout&lt;&lt;&quot;Zeichen!&quot;;
    if(isdigit(ch)) cout&lt;&lt;&quot;Ziffer/Zahl!&quot;;
    if(isspace(ch)) cout&lt;&lt;&quot;Leerzeichen!&quot;;

    cout&lt;&lt;&quot;\n\n&quot;;
    system(&quot;PAUSE&quot;);  // zeit zum ansehen
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/266191</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266191</guid><dc:creator><![CDATA[Henrie]]></dc:creator><pubDate>Mon, 02 Jun 2003 14:21:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 14:23:00 GMT]]></title><description><![CDATA[<blockquote>
<p>Original erstellt von &lt;Henrie&gt;:<br />
**```cpp<br />
if(isalpha(ch)) cout&lt;&lt;&quot;Zeichen!&quot;;<br />
if(isdigit(ch)) cout&lt;&lt;&quot;Ziffer/Zahl!&quot;;</p>
<pre><code class="language-**"></code></pre>
</blockquote>
<p>Fast.<br />
isalpha() prüft, ob es ein alphanumerisches Zeichen ist (also Ziffer oder Zahl), isdigit() prüft, ob es eine Ziffer ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/266192</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266192</guid><dc:creator><![CDATA[++c]]></dc:creator><pubDate>Mon, 02 Jun 2003 14:23:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 14:40:00 GMT]]></title><description><![CDATA[<p>Nein isaplha prüft ob der char alphabetisch ist <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/266193</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266193</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Mon, 02 Jun 2003 14:40:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 15:51:00 GMT]]></title><description><![CDATA[<p>Nochmal ne Frage dazu: Hab mitlerweile schon was zu isdigit gefundeb,könnte aber bitte mal jemand im isdigt-Bereich dieses Programms(ist noch im Aufbau) schauen,warum isdigit nicht prüft?</p>
<p>#include &lt;iostream.h&gt;<br />
#include &lt;stdio.h&gt;<br />
#include &lt;string.h&gt;<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;ctype.h&gt;</p>
<p>char Dateiname[]=&quot;Datenbank.txt&quot;;<br />
char Auswahl;<br />
int i=0,x=1,b=0,max=10;<br />
int ArtNrMin=1000,ArtNrMax=99999;<br />
char Platz[10];<br />
char Wiederholung;</p>
<p>const int Maxeintrag=15;</p>
<p>struct Artikeldb<br />
{<br />
int ArtNr,Gewicht,Gruppe,Laenge,Tiefe;<br />
char ArtBeschr[30],Farbe;<br />
};</p>
<p>void main()<br />
{<br />
Artikeldb Datenbank[Maxeintrag]={0};</p>
<p>cout &lt;&lt;&quot;Vorhandene Artikeldatenbank oeffnen? [Ja=1/Nein=0]:&quot;;<br />
cin &gt;&gt;Auswahl;<br />
cout &lt;&lt;&quot;\n&quot;;<br />
//Schleife Öffnen der Datenbank<br />
if (Auswahl=='1')<br />
{<br />
FILE *f_datei;<br />
cout &lt;&lt;&quot;Vorhandene Artikeldatenbank wird geoeffnet!\n\n&quot;;<br />
f_datei=fopen(Dateiname,&quot;r&quot;);<br />
//Schleife Kein Inhalt in Datei<br />
if(f_datei==0)<br />
{<br />
cout &lt;&lt;&quot;Es trat ein Fehler beim Oeffnen der Artikeldatenbank -&quot;;<br />
cout &lt;&lt;Dateiname &lt;&lt;&quot;- auf!\n\n&quot;;<br />
}<br />
else //Schleife Volle Datei<br />
{<br />
for(i=0;i&lt; Maxeintrag;i++) //Solange lesen bis (Maxeintrag)erreicht<br />
{<br />
fread(&amp;Datenbank[i],sizeof(Artikeldb),1,f_datei);<br />
}<br />
fclose(f_datei);<br />
cout &lt;&lt;&quot;Artikeldatenbank erfolgreich geeoffnet.\n\n&quot;;<br />
}<br />
}<br />
else //Speicherung von Dateien<br />
{<br />
do //Wiederholung der Eintragungen in Datei<br />
{<br />
cout &lt;&lt;&quot;Eingabe von Daten in die Artikeldatenbank\n\n&quot;;<br />
for(b=0;b&lt;x;b++) //Eingabebegrenzung x=1 für eine Nummer<br />
{<br />
cout &lt;&lt;&quot;Geben Sie die Artikelnummer ein (zwischen 1000 und 99999):&quot;;<br />
cin &gt;&gt;&amp;Platz[i];<br />
for(i=0;Platz[i]&lt;=10;i++)<br />
{<br />
if(isdigit((Platz[i]&gt;'0')&amp;&amp;(Platz[i]&lt;'9')))<br />
{<br />
cout &lt;&lt;&quot;Blablabla\n&quot;;</p>
<p>}<br />
else<br />
{<br />
if((Platz[i]&lt;1000)&amp;&amp;(Platz[i]&gt;99999))<br />
{ cout &lt;&lt;&quot;Fehleingabe!Bitte nochmal eintippen\n&quot;;<br />
}</p>
<p>}<br />
}</p>
<p>Datenbank[x].ArtNr;<br />
cout &lt;&lt;&quot;Wiederholung? [j/n]&quot;;<br />
cin &gt;&gt;Wiederholung;<br />
}while(Wiederholung=='j');</p>
<p>}</p>
<p>}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/266194</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266194</guid><dc:creator><![CDATA[quarks]]></dc:creator><pubDate>Mon, 02 Jun 2003 15:51:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 16:13:00 GMT]]></title><description><![CDATA[<p>Könnte das (halbe)Programm bitte jemand prüfen (Es darf kein anderes Zeichen außer 0-9 eingegeben werden und nur zwischen1000 und99999. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/266195</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266195</guid><dc:creator><![CDATA[quarks]]></dc:creator><pubDate>Mon, 02 Jun 2003 16:13:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 16:19:00 GMT]]></title><description><![CDATA[<p>Mach das ganze bitte nochmal mit Codetags. Allein das einrücken würde nen Tag dauern <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/266196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266196</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Mon, 02 Jun 2003 16:19:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 16:24:00 GMT]]></title><description><![CDATA[<p>ein Sekundchen bitte:kommt gleich</p>
]]></description><link>https://www.c-plusplus.net/forum/post/266197</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266197</guid><dc:creator><![CDATA[quarks]]></dc:creator><pubDate>Mon, 02 Jun 2003 16:24:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 16:27:00 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream.h&gt;
#include &lt;stdio.h&gt;
#include &lt;string.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;ctype.h&gt;

char Dateiname[]=&quot;Datenbank.txt&quot;;
char Auswahl;
int i=0,x=1,b=0,max=10;
int ArtNrMin=1000,ArtNrMax=99999;
char Platz[10];
char Wiederholung;

const int Maxeintrag=15;

struct Artikeldb
{
   int ArtNr,Gewicht,Gruppe,Laenge,Tiefe;
   char ArtBeschr[30],Farbe;
};

void main()
{
   Artikeldb Datenbank[Maxeintrag]={0};

   cout &lt;&lt;&quot;Vorhandene Artikeldatenbank oeffnen? [Ja=1/Nein=0]:&quot;;
   cin &gt;&gt;Auswahl;
   cout &lt;&lt;&quot;\n&quot;;
//Schleife Öffnen der Datenbank
   if (Auswahl=='1')
   {
      FILE *f_datei;

      cout &lt;&lt;&quot;Vorhandene Artikeldatenbank wird geoeffnet!\n\n&quot;;
      f_datei=fopen(Dateiname,&quot;r&quot;);
      //Schleife Kein Inhalt in Datei
      if(f_datei==0)
      {
         cout &lt;&lt;&quot;Es trat ein Fehler beim Oeffnen der Artikeldatenbank -&quot;;
         cout &lt;&lt;Dateiname &lt;&lt;&quot;- auf!\n\n&quot;;
      }
      else   //Schleife Volle Datei
      {
         for(i=0;i&lt; Maxeintrag;i++)   //Solange lesen bis Ende(Maxeintrag) erreicht
         {
            fread(&amp;Datenbank[i],sizeof(Artikeldb),1,f_datei);
         }
         fclose(f_datei);
         cout &lt;&lt;&quot;Artikeldatenbank erfolgreich geeoffnet.\n\n&quot;;
      }
   }
   else   //Speicherung von Dateien
   {
      do      //Wiederholung der Eintragungen in Datei
      {
         cout &lt;&lt;&quot;Eingabe von Daten in die Artikeldatenbank\n\n&quot;;
         for(b=0;b&lt;x;b++)   //Eingabebegrenzung x=1 für eine Nummer
         {
            cout &lt;&lt;&quot;Geben Sie die Artikelnummer ein (zwischen 1000 und 99999):&quot;;
            cin &gt;&gt;&amp;Platz[i];
            for(i=0;Platz[i]!='\0';i++)
            {
               if(isdigit(Platz[i]))
               {
                  cout &lt;&lt;&quot;Fehleingabe!Bitte nochmal eintippen\n&quot;;

               }
               else
               {
                  if((Platz[i]&lt;ArtNrMin)&amp;&amp;(Platz[i]&gt;ArtNrMax))
                  {
                     cout &lt;&lt;&quot;Fehleingabe!Bitte nochmal eintippen\n&quot;;
                  }
               }

            }
         }

      Datenbank[x].ArtNr;
      cout &lt;&lt;&quot;Wiederholung? [j/n]&quot;;
      cin &gt;&gt;Wiederholung;
      }while(Wiederholung=='j');

   }

}
</code></pre>
<p>[ Dieser Beitrag wurde am 02.06.2003 um 18:29 Uhr von <strong>HumeSikkins</strong> editiert. ]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/266198</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266198</guid><dc:creator><![CDATA[quarks]]></dc:creator><pubDate>Mon, 02 Jun 2003 16:27:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 16:33:00 GMT]]></title><description><![CDATA[<p>Sorry aber noch ein Versuch:</p>
<p>#include &lt;iostream.h&gt;<br />
#include &lt;stdio.h&gt;<br />
#include &lt;string.h&gt;<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;ctype.h&gt;</p>
<p>char Dateiname[]=&quot;Datenbank.txt&quot;;<br />
char Auswahl;<br />
int i=0,x=1,b=0,max=10;<br />
int ArtNrMin=1000,ArtNrMax=99999;<br />
char Platz[10];<br />
char Wiederholung;</p>
<p>const int Maxeintrag=15;</p>
<p>struct Artikeldb<br />
{<br />
int ArtNr,Gewicht,Gruppe,Laenge,Tiefe;<br />
char ArtBeschr[30],Farbe;<br />
};</p>
<p>void main()<br />
{<br />
Artikeldb Datenbank[Maxeintrag]={0};</p>
<p>cout &lt;&lt;&quot;Vorhandene Artikeldatenbank oeffnen? [Ja=1/Nein=0]:&quot;;<br />
cin &gt;&gt;Auswahl;<br />
cout &lt;&lt;&quot;\n&quot;;<br />
//Schleife Öffnen der Datenbank<br />
if (Auswahl=='1')<br />
{<br />
FILE *f_datei;</p>
<p>cout &lt;&lt;&quot;Vorhandene Artikeldatenbank wird geoeffnet!\n\n&quot;;<br />
f_datei=fopen(Dateiname,&quot;r&quot;);<br />
//Schleife Kein Inhalt in Datei<br />
if(f_datei==0)<br />
{<br />
cout &lt;&lt;&quot;Es trat ein Fehler beim Oeffnen der Artikeldatenbank -&quot;;<br />
cout &lt;&lt;Dateiname &lt;&lt;&quot;- auf!\n\n&quot;;<br />
}<br />
else //Schleife Volle Datei<br />
{<br />
for(i=0;i&lt; Maxeintrag;i++) //Solange lesen bis Ende(Maxeintrag) erreicht<br />
{<br />
fread(&amp;Datenbank[i],sizeof(Artikeldb),1,f_datei);<br />
}<br />
fclose(f_datei);<br />
cout &lt;&lt;&quot;Artikeldatenbank erfolgreich geeoffnet.\n\n&quot;;<br />
}<br />
}<br />
else //Speicherung von Dateien<br />
{<br />
do //Wiederholung der Eintragungen in Datei<br />
{<br />
cout &lt;&lt;&quot;Eingabe von Daten in die Artikeldatenbank\n\n&quot;;<br />
for(b=0;b&lt;x;b++) //Eingabebegrenzung x=1 für eine Nummer<br />
{<br />
cout &lt;&lt;&quot;Geben Sie die Artikelnummer ein (zwischen 1000 und 99999):&quot;;<br />
cin &gt;&gt;&amp;Platz[i];<br />
for(i=0;Platz[i]!='\0';i++)<br />
{<br />
if(isdigit(Platz[i]))<br />
{<br />
cout &lt;&lt;&quot;Fehleingabe!Bitte nochmal eintippen\n&quot;;</p>
<p>}<br />
else<br />
{<br />
if((Platz[i]&lt;ArtNrMin)&amp;&amp;(Platz[i]&gt;ArtNrMax))<br />
{<br />
cout &lt;&lt;&quot;Fehleingabe!Bitte nochmal eintippen\n&quot;;<br />
}<br />
}</p>
<p>}<br />
}</p>
<p>Datenbank[x].ArtNr;<br />
cout &lt;&lt;&quot;Wiederholung? [j/n]&quot;;<br />
cin &gt;&gt;Wiederholung;<br />
}while(Wiederholung=='j');</p>
<p>}</p>
<p>}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/266199</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266199</guid><dc:creator><![CDATA[quarks]]></dc:creator><pubDate>Mon, 02 Jun 2003 16:33:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 16:40:00 GMT]]></title><description><![CDATA[<p>Versuchs mal mit cin.get() anstatt cin&gt;&gt;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/266200</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266200</guid><dc:creator><![CDATA[Henrie]]></dc:creator><pubDate>Mon, 02 Jun 2003 16:40:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 16:49:00 GMT]]></title><description><![CDATA[<p>Ward schon versucht, ohne Erfolg!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/266201</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266201</guid><dc:creator><![CDATA[quarks]]></dc:creator><pubDate>Mon, 02 Jun 2003 16:49:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 02 Jun 2003 17:25:00 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">cin &gt;&gt;&amp;Platz[i]; //&lt;= mach mal das &amp; weg
...
if(isdigit(Platz[i])) // isdigit gibt true zurück wenn Platz[i] eine Ziffer ist
{
   cout &lt;&lt;&quot;Fehleingabe!Bitte nochmal eintippen\n&quot;;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/266202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/266202</guid><dc:creator><![CDATA[C Newbie]]></dc:creator><pubDate>Mon, 02 Jun 2003 17:25:00 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 03 Sep 2007 15:16:40 GMT]]></title><description><![CDATA[<p>ich hab kein thread gefunden, der's mir erklären konnte, also möcht ich hier noch mal fragen: wie kann ich die eingabe des users auf richtigkeit überprüfen.</p>
<p>in meinem fall sollen zahlen vom typ float eingegeben werden. das ganze geschieht in einer schleife:</p>
<pre><code class="language-csharp">for(int i=0; i&lt;Anzahl; i++) //Anzahl ist die Anzahl der zu speichernden Einträge
  {
    cout &lt;&lt; i+1 &lt;&lt; &quot;: &quot;; cin &gt;&gt; Ueberpruefung;
    if(!isalpha(Ueberpruefung))
    {
      Preise[i]=Ueberpruefung;
    } else {
      cout &lt;&lt; &quot;Falsche Eingabe&quot; &lt;&lt; endl;
      i--;
    }    
  }
</code></pre>
<p>dass so was falsch ist hab ich wohl gemerkt, aber wodran genau hängts?<br />
optimal wäre eine lösung, die ein getipptes komma durch den für float<br />
zulässigen punkt zu ersetzt, falls dies der fehler bei der eingabe ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358055</guid><dc:creator><![CDATA[Corin]]></dc:creator><pubDate>Mon, 03 Sep 2007 15:16:40 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 03 Sep 2007 15:36:31 GMT]]></title><description><![CDATA[<p>C++ macht man das nicht so -.- Wenn floating point zahlen eingelesen werden sollen:</p>
<pre><code class="language-cpp">std::vector&lt;float&gt; data(max_entrys);
for (std::size_t i = 0; i &lt; data.size(); ++i)
{
    std::cout &lt;&lt; (i + 1) &lt;&lt; &quot;: &quot; &lt;&lt; std::flush;
    while (!(std::cin &gt;&gt; data.at(i))) { std::cin.clear(); std::cin.ignore(std::numeric_limits&lt;std::streamsize&gt;::max(), '\n'); }
}
</code></pre>
<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358075</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358075</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Mon, 03 Sep 2007 15:36:31 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 03 Sep 2007 16:52:42 GMT]]></title><description><![CDATA[<p>tut mir leid, wenn ich mich ab und zu dumm anstell' - bin eben ein neuling. durch &quot;using namespace std&quot; kann man das std:: doch weglassen oder irre ich mich da?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358137</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358137</guid><dc:creator><![CDATA[Corin]]></dc:creator><pubDate>Mon, 03 Sep 2007 16:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 03 Sep 2007 17:00:57 GMT]]></title><description><![CDATA[<p>Du irrst dich nicht.<br />
Aber immer schön aufpassen, dass sich ein using namspace ... nicht in eine Headerdatei verirrt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358144</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Mon, 03 Sep 2007 17:00:57 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 03 Sep 2007 17:12:14 GMT]]></title><description><![CDATA[<p>nochmal zu dem code: selbst wenn er funktioniert bringt er mir nichts, wenn ich ihn nicht verstehe. würd mich freun, wenn mir jemand das schritt für schritt erklären könnte.</p>
<p>nach dem buch, mit dem ich lerne, steht der namespace immer hinter den includes (ist da nicht verkehrt oder?)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358157</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358157</guid><dc:creator><![CDATA[Corin]]></dc:creator><pubDate>Mon, 03 Sep 2007 17:12:14 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 03 Sep 2007 17:16:18 GMT]]></title><description><![CDATA[<p>Bevor du weiterfragst solltest du dir vielleicht mal was bezüglich namspaces durchlesen.<br />
z.Bsp.<br />
<a href="http://tutorial.schornboeck.net/namespace.htm" rel="nofollow">http://tutorial.schornboeck.net/namespace.htm</a><br />
<a href="http://www.cpp-tutor.de/cpp/le16/le16_05.htm" rel="nofollow">http://www.cpp-tutor.de/cpp/le16/le16_05.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358159</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358159</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Mon, 03 Sep 2007 17:16:18 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 03 Sep 2007 18:23:59 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">std::vector&lt;float&gt; data(max_entrys); // einen dynamischen Array(vector) mit der Größe max_entrys anlegen(den Wert musst du halt festlegen).
for (std::size_t i = 0; i &lt; data.size(); ++i) // für jedes Element, das in den Array soll...
{
    std::cout &lt;&lt; (i + 1) &lt;&lt; &quot;: &quot; &lt;&lt; std::flush; // Element-ID + 1 ausgeben ...
    while (!(std::cin &gt;&gt; data.at(i))) { std::cin.clear(); std::cin.ignore(std::numeric_limits&lt;std::streamsize&gt;::max(), '\n'); } // solange das einlese fehlschlägt( er also aus der Eingabe keinen float machen kann, setzte alle Fehlerbits zurück und werfe den momentanen Inhalt aus dem buffer ...
}
</code></pre>
<p>... so ist es stark vereinfacht erklärt <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/1358216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358216</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Mon, 03 Sep 2007 18:23:59 GMT</pubDate></item><item><title><![CDATA[Reply to isdigit() on Mon, 03 Sep 2007 18:53:31 GMT]]></title><description><![CDATA[<p>vielen dank für alles, werde mich selbst jetzt auch intensiver mit namensräumen beschäftigen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1358252</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1358252</guid><dc:creator><![CDATA[Corin]]></dc:creator><pubDate>Mon, 03 Sep 2007 18:53:31 GMT</pubDate></item></channel></rss>