<?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[Binäre Zahl aus String in Variable speichern]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte über eine Textbox eine Binärzahl in einen String einlesen und<br />
sie dann in einer Variable speichern. Es muss also eine Interpretation<br />
des Strings als Binärzahl erfolgen. Kann stringstream sowas leisten?<br />
Hex-Interpretation kann er ja mit &quot;&lt;&lt; hex&quot;, für binär habe ich aber<br />
nichts gefunden.</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/237767/binäre-zahl-aus-string-in-variable-speichern</link><generator>RSS for Node</generator><lastBuildDate>Fri, 11 Sep 2026 17:33:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/237767.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Apr 2009 15:52:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Binäre Zahl aus String in Variable speichern on Wed, 01 Apr 2009 15:52:59 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte über eine Textbox eine Binärzahl in einen String einlesen und<br />
sie dann in einer Variable speichern. Es muss also eine Interpretation<br />
des Strings als Binärzahl erfolgen. Kann stringstream sowas leisten?<br />
Hex-Interpretation kann er ja mit &quot;&lt;&lt; hex&quot;, für binär habe ich aber<br />
nichts gefunden.</p>
<p>Gruß</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1689403</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1689403</guid><dc:creator><![CDATA[seventh_son]]></dc:creator><pubDate>Wed, 01 Apr 2009 15:52:59 GMT</pubDate></item><item><title><![CDATA[Reply to Binäre Zahl aus String in Variable speichern on Wed, 01 Apr 2009 17:00:08 GMT]]></title><description><![CDATA[<p>seventh_son schrieb:</p>
<blockquote>
<p>Hex-Interpretation kann er ja mit &quot;&lt;&lt; hex&quot;, für binär habe ich aber<br />
nichts gefunden.</p>
</blockquote>
<p>std::setbase</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1689434</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1689434</guid><dc:creator><![CDATA[radieschen]]></dc:creator><pubDate>Wed, 01 Apr 2009 17:00:08 GMT</pubDate></item><item><title><![CDATA[Reply to Binäre Zahl aus String in Variable speichern on Wed, 01 Apr 2009 17:31:28 GMT]]></title><description><![CDATA[<p>radieschen schrieb:</p>
<blockquote>
<p>seventh_son schrieb:</p>
<blockquote>
<p>Hex-Interpretation kann er ja mit &quot;&lt;&lt; hex&quot;, für binär habe ich aber<br />
nichts gefunden.</p>
</blockquote>
<p>std::setbase</p>
</blockquote>
<p><code>std::setbase</code> geht nur für 8, 10 und 16.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/10911">@seventh_son</a>,<br />
Wird leider nicht unterstützt. Kann man aber leicht selber schreiben. Entweder als eine Funktion oder sogar über einen eigenen Manipulator. Wie man einen Manipulator selber schreibt, kannst du hier nachlesen:<br />
<a href="http://magazin.c-plusplus.net/artikel/Benutzerdefinierte%20Manipulatoren" rel="nofollow">http://magazin.c-plusplus.net/artikel/Benutzerdefinierte Manipulatoren</a></p>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1689453</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1689453</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Wed, 01 Apr 2009 17:31:28 GMT</pubDate></item><item><title><![CDATA[Reply to Binäre Zahl aus String in Variable speichern on Thu, 02 Apr 2009 10:38:43 GMT]]></title><description><![CDATA[<p>Könnte man bitset nicht für sowas missbrauchen. Da gibt es ja auch einen Konstruktor für string und eine Rückgabefunktion für unsigned long.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1689752</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1689752</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 02 Apr 2009 10:38:43 GMT</pubDate></item></channel></rss>