<?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[Bit entfernen]]></title><description><![CDATA[<p>Hallo<br />
Ist es möglich ein bit komplett zu entfernen? (also nicht auf 0 setzen)<br />
Angenommen ich habe 2 Bytes als 2x8 bit und will jeweils das MSB streichen und die so erhaltenen 2x7bit zusammensetzen.</p>
<p>Aus: 0x9D6C -&gt; <strong>1</strong>001 1101 <strong>0</strong>110 1100<br />
wird also 00 1110 1110 1100 -&gt; 0x0EEC</p>
<p>Danke für eure Antworten</p>
<p>Gruß Zaus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/267222/bit-entfernen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 02 Sep 2026 15:12:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/267222.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 20 May 2010 15:41:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bit entfernen on Thu, 20 May 2010 15:41:21 GMT]]></title><description><![CDATA[<p>Hallo<br />
Ist es möglich ein bit komplett zu entfernen? (also nicht auf 0 setzen)<br />
Angenommen ich habe 2 Bytes als 2x8 bit und will jeweils das MSB streichen und die so erhaltenen 2x7bit zusammensetzen.</p>
<p>Aus: 0x9D6C -&gt; <strong>1</strong>001 1101 <strong>0</strong>110 1100<br />
wird also 00 1110 1110 1100 -&gt; 0x0EEC</p>
<p>Danke für eure Antworten</p>
<p>Gruß Zaus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1900245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1900245</guid><dc:creator><![CDATA[Zaus]]></dc:creator><pubDate>Thu, 20 May 2010 15:41:21 GMT</pubDate></item><item><title><![CDATA[Reply to Bit entfernen on Thu, 20 May 2010 15:46:50 GMT]]></title><description><![CDATA[<p>Bitoperationen. Eine Mischung aus binärem Und, binärem Oder und Shiften bringt dir die Lösung.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1900249</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1900249</guid><dc:creator><![CDATA[Janjan]]></dc:creator><pubDate>Thu, 20 May 2010 15:46:50 GMT</pubDate></item><item><title><![CDATA[Reply to Bit entfernen on Thu, 20 May 2010 16:01:46 GMT]]></title><description><![CDATA[<p>Danke, ich werd mich mal schlau machen und melde mich dann gegebenfalls nochmal <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1900264</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1900264</guid><dc:creator><![CDATA[Zaus]]></dc:creator><pubDate>Thu, 20 May 2010 16:01:46 GMT</pubDate></item><item><title><![CDATA[Reply to Bit entfernen on Thu, 20 May 2010 16:18:12 GMT]]></title><description><![CDATA[<p>Problem ist gelöst. Für alle die den Thread irgenwann in der Forumssuche finden:</p>
<pre><code class="language-cpp">#include &quot;stdafx.h&quot;
#include &lt;iostream&gt;

        int a=0x85;
        int b=0x58;

	short ergebnis = 0; 

	c = (((a &amp; 0x7F ) &lt;&lt; 7) | ( b &amp; 0x7F)) &amp; 0x3FFF;

	cout &lt;&lt; ergebnis &lt;&lt; endl;
</code></pre>
<p>Wenn du noch ne alternative Lösung hast darfst die natürlich trotzdem gerne posten <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1900274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1900274</guid><dc:creator><![CDATA[Zaus]]></dc:creator><pubDate>Thu, 20 May 2010 16:18:12 GMT</pubDate></item><item><title><![CDATA[Reply to Bit entfernen on Thu, 20 May 2010 16:30:33 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">c = (a&amp;0x7f&lt;&lt;7)+(b&amp;0x7f);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1900288</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1900288</guid><dc:creator><![CDATA[buschop]]></dc:creator><pubDate>Thu, 20 May 2010 16:30:33 GMT</pubDate></item><item><title><![CDATA[Reply to Bit entfernen on Thu, 20 May 2010 16:40:55 GMT]]></title><description><![CDATA[<p>Statt c muss bei mir natürlich ergebnis stehen. Kanns leider nicht mehr ändern...solte mich mal registrieren.</p>
<p>Dein Code liefert bei mir statt 0xEEC 0xEC</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1900298</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1900298</guid><dc:creator><![CDATA[Zaus]]></dc:creator><pubDate>Thu, 20 May 2010 16:40:55 GMT</pubDate></item></channel></rss>