<?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[cin.clear()]]></title><description><![CDATA[<p>Bei cin.clear() wird doch einfach nur: &quot;failbit&quot;, &quot;badbit&quot; und &quot;goodbit&quot; wieder auf einen gültigen Status gesetzt?! Oder passiert da noch mehr? Ist das korrekt?<br />
MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/198719/cin-clear</link><generator>RSS for Node</generator><lastBuildDate>Fri, 02 Oct 2026 16:45:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/198719.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 Nov 2007 16:15:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to cin.clear() on Sat, 24 Nov 2007 16:15:32 GMT]]></title><description><![CDATA[<p>Bei cin.clear() wird doch einfach nur: &quot;failbit&quot;, &quot;badbit&quot; und &quot;goodbit&quot; wieder auf einen gültigen Status gesetzt?! Oder passiert da noch mehr? Ist das korrekt?<br />
MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1409422</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1409422</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Sat, 24 Nov 2007 16:15:32 GMT</pubDate></item><item><title><![CDATA[Reply to cin.clear() on Sat, 24 Nov 2007 19:06:36 GMT]]></title><description><![CDATA[<p>Eigentlich hat die Methode clear() noch einen Parameter, welcher aber standardmäßig auf 'ios_base::goodbit' steht, d.h. alle restlichen (Fehler-)Flags werden gelöscht und der Stream wieder in den Zustand 'good' versetzt.<br />
Nichtsdestotrotz kann natürlich die nächste Ein-/Ausgabe-Aktion fehlschlagen.</p>
<p>Mehr sollte eigentlich nicht passieren, obwohl das aber implementationsabhängig sein kann.</p>
<p>Ich halte die Benennung der Methoden auch nicht für so gelungen, da es noch die Methode setstate(iostate s) gibt, welche aber den übergebenen Parameter zusätzlich setzt (und die anderen unangetastet läßt).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1409523</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1409523</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Sat, 24 Nov 2007 19:06:36 GMT</pubDate></item><item><title><![CDATA[Reply to cin.clear() on Sun, 25 Nov 2007 20:43:21 GMT]]></title><description><![CDATA[<p>Meinst du mit &quot;noch einen Parameter&quot; eofbit?<br />
MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1410015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1410015</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Sun, 25 Nov 2007 20:43:21 GMT</pubDate></item><item><title><![CDATA[Reply to cin.clear() on Mon, 26 Nov 2007 06:54:37 GMT]]></title><description><![CDATA[<p>Nein, damit meint er, daß du clear() auch einen Parameter übergeben kannst - <code>cin.clear(failbit);</code> setzt zuerst alle Statusflags zurück und aktiviert <strong>anschließend</strong> das failbit. (Defaultwert für diesen Parameter ist 'goodbit')</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1410144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1410144</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 26 Nov 2007 06:54:37 GMT</pubDate></item><item><title><![CDATA[Reply to cin.clear() on Mon, 26 Nov 2007 11:15:11 GMT]]></title><description><![CDATA[<p>Sorry, habe mich wohl etwas unglücklich ausgedrückt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1410244</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1410244</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Mon, 26 Nov 2007 11:15:11 GMT</pubDate></item><item><title><![CDATA[Reply to cin.clear() on Mon, 26 Nov 2007 19:15:31 GMT]]></title><description><![CDATA[<p>Achso, also wenn ich cin.clear(eofbit) mache, dann werden goodbit,failbit und badbit zurückgesetzt und eofbit wird gesetzt. Und bei cin.clear(badbit) wird badbit gestzt und alle anderen wieder zurückgesetzt....u.s.w....und default ist halt imemr goodbit, also wird goodbit gesetzt, und alles anderen zurückgesetzt..!?</p>
<p>MfG<br />
Stromberg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1410559</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1410559</guid><dc:creator><![CDATA[Stromberg]]></dc:creator><pubDate>Mon, 26 Nov 2007 19:15:31 GMT</pubDate></item><item><title><![CDATA[Reply to cin.clear() on Tue, 27 Nov 2007 10:29:32 GMT]]></title><description><![CDATA[<p>Exakt, daher finde ich die Benennung 'leeren' etwas unglücklich...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1410852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1410852</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Tue, 27 Nov 2007 10:29:32 GMT</pubDate></item></channel></rss>