<?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[Integer oder short binär ausgeben!!]]></title><description><![CDATA[<p>hallo gibts ne funktion welche auser ner ziffer in nem integer wert die datena ls binär sintr ausgibt bsp: short i=5; CString t= &quot;00000101&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/161489/integer-oder-short-binär-ausgeben</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 13:44:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/161489.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 07 Oct 2006 10:04:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Integer oder short binär ausgeben!! on Sat, 07 Oct 2006 10:04:03 GMT]]></title><description><![CDATA[<p>hallo gibts ne funktion welche auser ner ziffer in nem integer wert die datena ls binär sintr ausgibt bsp: short i=5; CString t= &quot;00000101&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1150931</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1150931</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Sat, 07 Oct 2006 10:04:03 GMT</pubDate></item><item><title><![CDATA[Reply to Integer oder short binär ausgeben!! on Sun, 08 Oct 2006 21:07:37 GMT]]></title><description><![CDATA[<p>BorisDieKlinge schrieb:</p>
<blockquote>
<p>hallo gibts ne funktion welche auser ner ziffer in nem integer wert die datena ls binär sintr ausgibt bsp: short i=5; CString t= &quot;00000101&quot;</p>
</blockquote>
<p>eine fertige &quot;Funktion&quot; gibt es IMHO nicht... du mußt Dir selber eine schreiben !!!</p>
<p>einfach Deinen Integer-Wert &quot;immer wieder&quot; / solange durch 2 teilen solange das Ergebnis größer 0 ist, der jeweilige Rest dieser Divisionen ergibt das jeweilige Bit ( 0/1 ) !!!</p>
<p>Ich hoffe du kannst mir folgen... genauso wie du es auch &quot;händisch&quot; machen würdest !!!</p>
<p>cu veganza</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1151692</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1151692</guid><dc:creator><![CDATA[veganza]]></dc:creator><pubDate>Sun, 08 Oct 2006 21:07:37 GMT</pubDate></item><item><title><![CDATA[Reply to Integer oder short binär ausgeben!! on Mon, 09 Oct 2006 23:21:30 GMT]]></title><description><![CDATA[<p>Gäbe noch eine weiter Möglichkeit:</p>
<pre><code class="language-cpp">CString strBits;
int nInteger = 204; // Irgendeine Zahl halt.

for(int i = 0; i &lt; sizeof(int); ++i)
{
    if(nInteger &amp; (1 &lt;&lt; i))
    { strBits.Insert(0, '1'); }
    else
    { strBits.Insert(0, '0'); }
}
</code></pre>
<p>Grüssli</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1151894</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1151894</guid><dc:creator><![CDATA[Dravere]]></dc:creator><pubDate>Mon, 09 Oct 2006 23:21:30 GMT</pubDate></item><item><title><![CDATA[Reply to Integer oder short binär ausgeben!! on Tue, 10 Oct 2006 07:17:22 GMT]]></title><description><![CDATA[<p>Warum versucht ihr es nicht mal mit bitset&lt;&gt;s?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1151946</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1151946</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 10 Oct 2006 07:17:22 GMT</pubDate></item><item><title><![CDATA[Reply to Integer oder short binär ausgeben!! on Tue, 10 Oct 2006 07:38:25 GMT]]></title><description><![CDATA[<p>danke <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /> hier geht vorran:)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1151964</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1151964</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Tue, 10 Oct 2006 07:38:25 GMT</pubDate></item></channel></rss>