<?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[Ausgabe Ascii Zeichen als Byte]]></title><description><![CDATA[<p>Hallo,</p>
<p>(thema : übung mit for schleife....)</p>
<p>kann mir jemand sagen, wie man ein ASCII Code Byte über eine FOR Schleife ausgeben kann ?</p>
<p>Also der Anwender wird aufgefordert ein Ascii Zeichen einzugeben und dann soll das Ascii Byte (bitweise) ausgegeben werden.</p>
<p>z.b 'c' -&gt; 01000011</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/256486/ausgabe-ascii-zeichen-als-byte</link><generator>RSS for Node</generator><lastBuildDate>Fri, 11 Sep 2026 08:06:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/256486.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 13 Dec 2009 17:44:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ausgabe Ascii Zeichen als Byte on Sun, 13 Dec 2009 17:44:42 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>(thema : übung mit for schleife....)</p>
<p>kann mir jemand sagen, wie man ein ASCII Code Byte über eine FOR Schleife ausgeben kann ?</p>
<p>Also der Anwender wird aufgefordert ein Ascii Zeichen einzugeben und dann soll das Ascii Byte (bitweise) ausgegeben werden.</p>
<p>z.b 'c' -&gt; 01000011</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1822047</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1822047</guid><dc:creator><![CDATA[jetigismo]]></dc:creator><pubDate>Sun, 13 Dec 2009 17:44:42 GMT</pubDate></item><item><title><![CDATA[Reply to Ausgabe Ascii Zeichen als Byte on Sun, 13 Dec 2009 17:54:03 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;

// gibt einen character in binärform aus
// Bsp: 00101100b
void print_character(char c)
{
    const int BITS_PER_BYTE = 8;

    for (int n = BITS_PER_BYTE - 1; n &gt;= 0; --n)
        std::cout &lt;&lt; (c &amp; (1 &lt;&lt; n));
    std::cout &lt;&lt; &quot;b&quot; &lt;&lt; std::endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1822055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1822055</guid><dc:creator><![CDATA[DrakoXP]]></dc:creator><pubDate>Sun, 13 Dec 2009 17:54:03 GMT</pubDate></item></channel></rss>