<?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[Hex berechnen]]></title><description><![CDATA[<p>Hallo</p>
<p>will in einer schleife einen Hexwert addieren</p>
<p>bsp<br />
int wert;<br />
wert=0x00;<br />
for(i=1;i&lt;0x0f;i++)<br />
{<br />
wert+=i;<br />
cout&lt;&lt;wert&lt;&lt;flush;</p>
<p>}</p>
<p>das ergebniss sieht so aus 01234567891011121314</p>
<p>ich will aber 0x000x010x02....0x0a0x0b..0x0e haben.</p>
<p>wie kann ich das ereichen???</p>
<p>vielen dank</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/139131/hex-berechnen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 30 Aug 2026 09:35:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/139131.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 03 Mar 2006 18:58:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hex berechnen on Fri, 03 Mar 2006 18:58:03 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>will in einer schleife einen Hexwert addieren</p>
<p>bsp<br />
int wert;<br />
wert=0x00;<br />
for(i=1;i&lt;0x0f;i++)<br />
{<br />
wert+=i;<br />
cout&lt;&lt;wert&lt;&lt;flush;</p>
<p>}</p>
<p>das ergebniss sieht so aus 01234567891011121314</p>
<p>ich will aber 0x000x010x02....0x0a0x0b..0x0e haben.</p>
<p>wie kann ich das ereichen???</p>
<p>vielen dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1007940</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1007940</guid><dc:creator><![CDATA[herrmannA]]></dc:creator><pubDate>Fri, 03 Mar 2006 18:58:03 GMT</pubDate></item><item><title><![CDATA[Reply to Hex berechnen on Fri, 03 Mar 2006 19:18:46 GMT]]></title><description><![CDATA[<p>Bitte Code-Tags benutzen sfds</p>
<p>ungefähr so sollte die Ausgabe aussehen</p>
<pre><code class="language-cpp">std::cout &lt;&lt; &quot;0x&quot; &lt;&lt; std::hex &lt;&lt; std::setw(3) &lt;&lt; std::setfill('0') &lt;&lt; 10;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1007953</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1007953</guid><dc:creator><![CDATA[rüdiger]]></dc:creator><pubDate>Fri, 03 Mar 2006 19:18:46 GMT</pubDate></item></channel></rss>