<?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[Zahl als Hexzahl ausgeben (CString)]]></title><description><![CDATA[<p>Hallo ich habe einen BYTE-Wert und würde diesen nun gerne als Hexzahl ausgeben:</p>
<p>Also zu in der Art:</p>
<p>- Eingabe einer Zahl (BYTE): 255<br />
- Ausgabe in Hex: 0xFF</p>
<p>Gibt es eine Methode die direkt aus einem Byte den Hexcode als String bestimmt?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/180474/zahl-als-hexzahl-ausgeben-cstring</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 06:34:55 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/180474.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 May 2007 10:29:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zahl als Hexzahl ausgeben (CString) on Thu, 03 May 2007 10:29:27 GMT]]></title><description><![CDATA[<p>Hallo ich habe einen BYTE-Wert und würde diesen nun gerne als Hexzahl ausgeben:</p>
<p>Also zu in der Art:</p>
<p>- Eingabe einer Zahl (BYTE): 255<br />
- Ausgabe in Hex: 0xFF</p>
<p>Gibt es eine Methode die direkt aus einem Byte den Hexcode als String bestimmt?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278019</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278019</guid><dc:creator><![CDATA[N00b--]]></dc:creator><pubDate>Thu, 03 May 2007 10:29:27 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl als Hexzahl ausgeben (CString) on Thu, 03 May 2007 10:34:16 GMT]]></title><description><![CDATA[<p>Ja, gibt es - nennt sich Format():</p>
<pre><code class="language-cpp">BYTE b = 255;
CString str;
str.Format(&quot;0x%x&quot;,b);

//Alternativ für std::string:
stringstream buf;
buf&lt;&lt;&quot;0x&quot;&lt;&lt;hex&lt;&lt;(int)b;
string str = buf.str();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1278022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278022</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 03 May 2007 10:34:16 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl als Hexzahl ausgeben (CString) on Thu, 03 May 2007 10:35:48 GMT]]></title><description><![CDATA[<p>Danke dir... ich bin CString-Fan <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="🙂"
    /> deswegen nehme ich deinen ersten Vorschlag... <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/1278023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278023</guid><dc:creator><![CDATA[N00b--]]></dc:creator><pubDate>Thu, 03 May 2007 10:35:48 GMT</pubDate></item><item><title><![CDATA[Reply to Zahl als Hexzahl ausgeben (CString) on Thu, 03 May 2007 11:51:59 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-1.html" rel="nofollow">MFC (Visual C++)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278071</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278071</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Thu, 03 May 2007 11:51:59 GMT</pubDate></item></channel></rss>