<?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[Überprüf-Funktionen string?double?int?]]></title><description><![CDATA[<p>Hey C++ler,</p>
<p>ich suche nach geeigneten Funktionen, die überprüfen können, ob der Inhalt einer Variable nur aus Zahlen/Buchstaben besteht...</p>
<p>Ich möchte, dass der Benutzer z.b. eine mehrstellige Nummer eingibt, die Eingabe soll dann Überprüft werden, ob es auch nur Zahlen sind oder auch Buchstaben etc, dabei sind. Wenn es nur Zahlen sind wird die Eingabe weiterverarbeitet.</p>
<p>Kann mir da jmd. weiter helfen?</p>
<p>Mfg Golfi</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/294761/überprüf-funktionen-string-double-int</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 19:02:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/294761.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 Oct 2011 22:33:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Überprüf-Funktionen string?double?int? on Mon, 31 Oct 2011 22:33:48 GMT]]></title><description><![CDATA[<p>Hey C++ler,</p>
<p>ich suche nach geeigneten Funktionen, die überprüfen können, ob der Inhalt einer Variable nur aus Zahlen/Buchstaben besteht...</p>
<p>Ich möchte, dass der Benutzer z.b. eine mehrstellige Nummer eingibt, die Eingabe soll dann Überprüft werden, ob es auch nur Zahlen sind oder auch Buchstaben etc, dabei sind. Wenn es nur Zahlen sind wird die Eingabe weiterverarbeitet.</p>
<p>Kann mir da jmd. weiter helfen?</p>
<p>Mfg Golfi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138498</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138498</guid><dc:creator><![CDATA[Golfi1812]]></dc:creator><pubDate>Mon, 31 Oct 2011 22:33:48 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüf-Funktionen string?double?int? on Mon, 31 Oct 2011 22:42:44 GMT]]></title><description><![CDATA[<p>Mach dir eine Funktion &quot;bool isValidInput(const std::string &amp;input)&quot; und nutze dann z.B. die Funktionen aus &lt;cctype&gt;. Vielleicht geht das auch mit den Streams, aber das hört sich für mich erstmal nach mehr Gefrickel an, als eine einfache Funktion. Vielleicht postet ja jemand etwas schönes, das mich umstimmen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138502</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138502</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Mon, 31 Oct 2011 22:42:44 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüf-Funktionen string?double?int? on Mon, 31 Oct 2011 22:44:24 GMT]]></title><description><![CDATA[<p>Danke...</p>
<p>Kann ich eigentlich z.b. 12345x6 in eine integer Variable einlesen, ohne dass es einen Laufzeitfehler gibt? Denn dann könnte ich die Variable überprüfen. Da hätte ich schon einen Ansatz...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138503</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138503</guid><dc:creator><![CDATA[Golfi1812]]></dc:creator><pubDate>Mon, 31 Oct 2011 22:44:24 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüf-Funktionen string?double?int? on Mon, 31 Oct 2011 22:56:59 GMT]]></title><description><![CDATA[<p>Was soll &quot;12345x6&quot; ergeben? 123456? Willst du alle nicht-numerischen Zeichen überspringen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138507</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138507</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Mon, 31 Oct 2011 22:56:59 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüf-Funktionen string?double?int? on Mon, 31 Oct 2011 23:15:12 GMT]]></title><description><![CDATA[<blockquote>
<p>Willst du alle nicht-numerischen Zeichen überspringen?</p>
</blockquote>
<p>Korekt, wie schaffe ich das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138514</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138514</guid><dc:creator><![CDATA[Golfi1812]]></dc:creator><pubDate>Mon, 31 Oct 2011 23:15:12 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüf-Funktionen string?double?int? on Mon, 31 Oct 2011 23:19:13 GMT]]></title><description><![CDATA[<p>Da gibt es mehrere Möglichkeiten.<br />
- Du entfernst alle nicht-numerische Zeichen.<br />
- Du baust dir einen Iterator, der alle nicht-numerischen Zeichen überspringt.<br />
- Du iterierst über den String, und wenn du ein numerisches Zeichen findest, multiplizierst du deine Zahl mit 10 und addierst die Ziffer.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138517</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Mon, 31 Oct 2011 23:19:13 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüf-Funktionen string?double?int? on Mon, 31 Oct 2011 23:27:14 GMT]]></title><description><![CDATA[<p>Ich würde alle nichtnumerischen Zeichen ausm String entfernen und den Rest über stringstream zu einem int shiften.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138521</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138521</guid><dc:creator><![CDATA[*Rewind*]]></dc:creator><pubDate>Mon, 31 Oct 2011 23:27:14 GMT</pubDate></item><item><title><![CDATA[Reply to Überprüf-Funktionen string?double?int? on Tue, 01 Nov 2011 00:34:53 GMT]]></title><description><![CDATA[<p>Oder:<br />
- Du baust dir einen Stream, der nicht-numerische Zeichen überspringt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2138545</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2138545</guid><dc:creator><![CDATA[314159265358979]]></dc:creator><pubDate>Tue, 01 Nov 2011 00:34:53 GMT</pubDate></item></channel></rss>