<?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[Hexadezimalzahlen darstellen]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich schreibe ein prog. welches zw. den Zahlensystemen umrechnet, ich habe jetzt schon alle systeme bis auf das hex. weil, soweit ich weiß, keine Zahlen in eine CHAR Variable speichern kann, und in ein int o.ä. kann man nur Zahlen speichern.</p>
<p>Frage:<br />
Gibt es irgendeinen Datentyp in dem ich Zahlen und Buchstaben abspeichern kann oder irgendeine andre Lösung??</p>
<p>Schon mal Danke für eure Lösungen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/174156/hexadezimalzahlen-darstellen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 13:08:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/174156.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Feb 2007 13:32:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hexadezimalzahlen darstellen on Fri, 23 Feb 2007 13:33:16 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich schreibe ein prog. welches zw. den Zahlensystemen umrechnet, ich habe jetzt schon alle systeme bis auf das hex. weil, soweit ich weiß, keine Zahlen in eine CHAR Variable speichern kann, und in ein int o.ä. kann man nur Zahlen speichern.</p>
<p>Frage:<br />
Gibt es irgendeinen Datentyp in dem ich Zahlen und Buchstaben abspeichern kann oder irgendeine andre Lösung??</p>
<p>Schon mal Danke für eure Lösungen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234090</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234090</guid><dc:creator><![CDATA[Raxtor]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:33:16 GMT</pubDate></item><item><title><![CDATA[Reply to Hexadezimalzahlen darstellen on Fri, 23 Feb 2007 13:40:31 GMT]]></title><description><![CDATA[<p>Zahlen und Buchstaben - std::string (zur Not auch char*, aber ist nicht zu empfehlen).</p>
<p>Bessere Lösung - rechne intern mit int-Werten und wähle dann nur für die Ausgabe das richtige Format aus ( <code>cout&lt;&lt;hex&lt;&lt;val;</code> gibt den Wert als Hex-Zahl aus).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234098</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234098</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:40:31 GMT</pubDate></item><item><title><![CDATA[Reply to Hexadezimalzahlen darstellen on Fri, 23 Feb 2007 13:41:22 GMT]]></title><description><![CDATA[<p>Digger182 schrieb:</p>
<blockquote>
<p>weil, soweit ich weiß, keine Zahlen in eine CHAR Variable speichern kann...</p>
</blockquote>
<p>doch, '0' ... '9' (als zeichen) pro char,<br />
oder '00' ... '99' als bcd,<br />
oder '0' ... 'f' als hexziffer,<br />
oder als wert 0x00...0xff (hex) bzw. 0...255 (dezimal).<br />
oder 2*4bits für zwei hexziffern,<br />
oder, oder, oder...</p>
<p>in char-arrays kriegste noch mehr rein (zeichenketten)<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234099</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234099</guid><dc:creator><![CDATA[ten]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:41:22 GMT</pubDate></item><item><title><![CDATA[Reply to Hexadezimalzahlen darstellen on Fri, 23 Feb 2007 13:42:00 GMT]]></title><description><![CDATA[<p>Danke jetzt funktionierts <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/1234100</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234100</guid><dc:creator><![CDATA[Raxtor]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:42:00 GMT</pubDate></item><item><title><![CDATA[Reply to Hexadezimalzahlen darstellen on Fri, 23 Feb 2007 13:42:18 GMT]]></title><description><![CDATA[<p>cout &lt;&lt; &quot;Im hex format: &quot; &lt;&lt; hex &lt;&lt; deineIntZahl;</p>
<p>??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234101</guid><dc:creator><![CDATA[Fehlerfux]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:42:18 GMT</pubDate></item><item><title><![CDATA[Reply to Hexadezimalzahlen darstellen on Fri, 23 Feb 2007 13:44:30 GMT]]></title><description><![CDATA[<p>Fehlerfux schrieb:</p>
<blockquote>
<p>cout &lt;&lt; &quot;Im hex format: &quot; &lt;&lt; hex &lt;&lt; deineIntZahl;</p>
<p>??</p>
</blockquote>
<p>steht schon weiter oben aber danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1234103</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1234103</guid><dc:creator><![CDATA[Raxtor]]></dc:creator><pubDate>Fri, 23 Feb 2007 13:44:30 GMT</pubDate></item></channel></rss>