<?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[Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ??????]]></title><description><![CDATA[<p>Wie kann ich z. B. eine Fünfstellige Zahl die in eine Variable Deklariert wurde (z. B. X=83749),<br />
in so viele Varieblen splitten wie Ziffern da sind (z. B. a=8, b=3, c=7, d=4, e=9).</p>
<p><strong>[X=83749] &gt;ZU&gt; [a=8, b=3, c=7, d=4, e=9]</strong></p>
<p>Sprich:<br />
ICH WILL WAS AUSEINANDERNEHMEN!!!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/139252/zahlen-auseinandernehmen-z-b-x-83749-gt-a-8-b-3-c-7-d-4-e-9</link><generator>RSS for Node</generator><lastBuildDate>Sun, 30 Aug 2026 11:33:11 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/139252.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 04 Mar 2006 23:32:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sat, 04 Mar 2006 23:32:11 GMT]]></title><description><![CDATA[<p>Wie kann ich z. B. eine Fünfstellige Zahl die in eine Variable Deklariert wurde (z. B. X=83749),<br />
in so viele Varieblen splitten wie Ziffern da sind (z. B. a=8, b=3, c=7, d=4, e=9).</p>
<p><strong>[X=83749] &gt;ZU&gt; [a=8, b=3, c=7, d=4, e=9]</strong></p>
<p>Sprich:<br />
ICH WILL WAS AUSEINANDERNEHMEN!!!! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1008800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1008800</guid><dc:creator><![CDATA[Dino Crisis]]></dc:creator><pubDate>Sat, 04 Mar 2006 23:32:11 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sun, 05 Mar 2006 07:34:15 GMT]]></title><description><![CDATA[<p>Mit einer Schleife und den Operatoren % und /</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1008862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1008862</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 05 Mar 2006 07:34:15 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sun, 05 Mar 2006 12:25:04 GMT]]></title><description><![CDATA[<p>mmm... Kann ich dazu ein Beispiel haben?</p>
<p>Bin nämlich noch Anfänger...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1008957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1008957</guid><dc:creator><![CDATA[Dino Crisis]]></dc:creator><pubDate>Sun, 05 Mar 2006 12:25:04 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sun, 05 Mar 2006 15:13:06 GMT]]></title><description><![CDATA[<p>83749 % 10 = 9<br />
83749 / 10 % 10 = 4<br />
83749 / 100 % 10 = 7<br />
83749 / 1000 % 10 = 3<br />
83749 / 10000 % 10 = 8</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1009038</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009038</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Sun, 05 Mar 2006 15:13:06 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sun, 05 Mar 2006 15:16:38 GMT]]></title><description><![CDATA[<p>ich würde diese Arbeit durch die Standardbibliothek erledigen lassen</p>
<p>Pseudocode:</p>
<pre><code class="language-cpp">int zahl = 83749;
stringstream str;
str&lt;&lt;zahl;
cout&lt;&lt;str[0]&lt;&lt;endl; // gibt 8 aus
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1009041</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009041</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Sun, 05 Mar 2006 15:16:38 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sun, 05 Mar 2006 17:08:32 GMT]]></title><description><![CDATA[<p>Vertexwahn schrieb:</p>
<blockquote>
<p>ich würde diese Arbeit durch die Standardbibliothek erledigen lassen</p>
<p>Pseudocode:</p>
<pre><code class="language-cpp">int zahl = 83749;
stringstream str;
str&lt;&lt;zahl;
cout&lt;&lt;str[0]&lt;&lt;endl; // gibt 8 aus
</code></pre>
</blockquote>
<p>Naja, fast.</p>
<pre><code class="language-cpp">int zahl = 83749;
stringstream strstr;
strstr&lt;&lt;zahl;
string str;
strstr &gt;&gt; str;
cout&lt;&lt;str[0]&lt;&lt;endl; // gibt 8 aus
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1009117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009117</guid><dc:creator><![CDATA[evilissimo]]></dc:creator><pubDate>Sun, 05 Mar 2006 17:08:32 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sun, 05 Mar 2006 18:47:57 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">cout&lt;&lt;str.str()[0]&lt;&lt;endl; // gibt 8 aus
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1009199</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009199</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Sun, 05 Mar 2006 18:47:57 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sun, 05 Mar 2006 19:52:06 GMT]]></title><description><![CDATA[<p>Vertexwahn schrieb:</p>
<blockquote>
<p>ich würde diese Arbeit durch die Standardbibliothek erledigen lassen</p>
<p>Pseudocode:</p>
<pre><code class="language-cpp">int zahl = 83749;
stringstream str;
str&lt;&lt;zahl;
cout&lt;&lt;str[0]&lt;&lt;endl; // gibt 8 aus
</code></pre>
</blockquote>
<p>Über strings würde ich aus auf keinen Fall machen!<br />
Du als Europäer bis vielleicht gewöhnt dass es nur unsere Zahlen gibt! Da hast Du sich aber getäuscht... und falls das Programm je mal unter einer anderen Locale läuft, hast Du ein massives Problem...<br />
Und mathemetische aufgaben sollte man auch als solche Lösen und nicht &quot;rummurksen&quot;...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1009252</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009252</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 05 Mar 2006 19:52:06 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sun, 05 Mar 2006 20:04:08 GMT]]></title><description><![CDATA[<p>Hem, wo werden denn Zahlen anders behandelt als bei den europäern? Mal ganz davon abgesehen, das es arabische Schreibweise ist, die man hier in Europa und wohl den Rest der Welt benutzt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1009258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009258</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Sun, 05 Mar 2006 20:04:08 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sun, 05 Mar 2006 20:19:29 GMT]]></title><description><![CDATA[<p>Die &quot;arabische Schreibweise&quot; wird aber nicht in Arabien benützt (keine Ahnung warum unsere Zahlen so heissen)...<br />
Du hast Dich vermutlich noch nie mit Lokalisierung beschäftigt...<br />
Hättest Du in Deinem XP die Arabischen Sprachen installiert, dann könntest Du z.B. die Zahlendarstellung auswählen, und da bietet Windows XP mindestens 5 verschiendene an (neben den Dir bekannten).</p>
<p>Allein im Unicode sind 270 verschienden Zeichen für 0-9 definiert:<br />
<a href="http://www.fileformat.info/info/unicode/category/Nd/list.htm" rel="nofollow">http://www.fileformat.info/info/unicode/category/Nd/list.htm</a><br />
Die Arabische 3 ist z.B.:<br />
<a href="http://www.fileformat.info/info/unicode/char/0663/index.htm" rel="nofollow">http://www.fileformat.info/info/unicode/char/0663/index.htm</a></p>
<p>Aber ganz abgesehen davon löst man Mathematische Aufgaben korrekt und nicht über Strings!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1009261</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009261</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Sun, 05 Mar 2006 20:19:29 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sun, 05 Mar 2006 20:20:23 GMT]]></title><description><![CDATA[<blockquote>
<p>Und mathemetische aufgaben sollte man auch als solche Lösen und nicht &quot;rummurksen&quot;...</p>
</blockquote>
<p>Hab mir gedacht, das stringstream das intern genau so lösen wird. Aber wenn wirklich die Gefahr besteht, dann ist es natürlich sinnvoll es selber zu lösen - aber vielleicht ist ja genau dieses Verhalten gewünscht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1009262</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009262</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Sun, 05 Mar 2006 20:20:23 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Sun, 05 Mar 2006 20:34:11 GMT]]></title><description><![CDATA[<p>Gut das ich direckt die erste Antwort genommen habe...</p>
<pre><code class="language-cpp">x5 = GebDatum / 10000 % 10;
x6 = GebDatum / 1000 % 10;
x7 = GebDatum / 100 % 10;
x8 = GebDatum / 10 % 10;
x9 = GebDatum % 10;
</code></pre>
<p>Damit ihr auch wisst warum ich das gebraucht habe, ich baue mit gerade selber einen Personalwausweis ID Gernerator/Dekodierer... Und da muss ich die Ziffern einzeln verwenden können um z. B. die Prüffsumme ausrechnen zu können.</p>
<p>Danke nochmal...</p>
<p>und ja, ich weis... von den dingern gibt es einige... aber nur wer selber ein Heusle baut weis wo er Später in der Wand bohren kann...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1009266</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009266</guid><dc:creator><![CDATA[Dino Crisis]]></dc:creator><pubDate>Sun, 05 Mar 2006 20:34:11 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Mon, 06 Mar 2006 10:34:43 GMT]]></title><description><![CDATA[<p>Seid ihr euch sicher, dass der wstringstream das beim umwandeln nicht beachtet?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1009545</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009545</guid><dc:creator><![CDATA[Any]]></dc:creator><pubDate>Mon, 06 Mar 2006 10:34:43 GMT</pubDate></item><item><title><![CDATA[Reply to Zahlen Auseinandernehmen Z. B: [X=83749] -&amp;gt; [a=8, b=3, c=7, d=4, e=9] ?????? on Mon, 06 Mar 2006 11:23:09 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;iterator&gt;
#include &lt;deque&gt;
using namespace std;

typedef deque&lt;unsigned char&gt; bytes;

template&lt;typename TContainer&gt;
inline void makeDigits(TContainer &amp;output, int number)
{
	for(; number&gt;0; number/=10)
		output.push_front(number%10);
}

int main()
{
	bytes test;
	makeDigits(test, 5432652);
	copy(test.begin(), test.end(), ostream_iterator&lt;int&gt;(cout, &quot;\n&quot;));
	cin.get();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1009585</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1009585</guid><dc:creator><![CDATA[schorsch code]]></dc:creator><pubDate>Mon, 06 Mar 2006 11:23:09 GMT</pubDate></item></channel></rss>