<?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[wie kann ich 3 Zahlen ohne Verwendung von logischen Operatoren sortigen???? auf C++]]></title><description><![CDATA[<p>wie kann ich 3 Zahlen ohne Verwendung von logischen Operatoren sortigen auf C++</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/294493/wie-kann-ich-3-zahlen-ohne-verwendung-von-logischen-operatoren-sortigen-auf-c</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 21:53:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/294493.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 26 Oct 2011 04:01:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wie kann ich 3 Zahlen ohne Verwendung von logischen Operatoren sortigen???? auf C++ on Wed, 26 Oct 2011 04:01:11 GMT]]></title><description><![CDATA[<p>wie kann ich 3 Zahlen ohne Verwendung von logischen Operatoren sortigen auf C++</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2135850</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2135850</guid><dc:creator><![CDATA[Kendo]]></dc:creator><pubDate>Wed, 26 Oct 2011 04:01:11 GMT</pubDate></item><item><title><![CDATA[Reply to wie kann ich 3 Zahlen ohne Verwendung von logischen Operatoren sortigen???? auf C++ on Wed, 26 Oct 2011 04:49:18 GMT]]></title><description><![CDATA[<p>Spontan würde ich sagen &quot;std::min/max&quot; aus &lt;algorithm&gt;. Wenns wirklich komplett ohne sein soll, schau dir mal das hier an:</p>
<blockquote>
<p>int x; // we want to find the minimum of x and y<br />
int y;<br />
int r; // the result goes here</p>
<p>r = y ^ ((x ^ y) &amp; -(x &lt; y)); // min(x, y)</p>
<p>To find the maximum, use:<br />
r = x ^ ((x ^ y) &amp; -(x &lt; y)); // max(x, y)</p>
</blockquote>
<p>Quelle: <a href="http://graphics.stanford.edu/~seander/bithacks.html#IntegerMinOrMax" rel="nofollow">http://graphics.stanford.edu/~seander/bithacks.html#IntegerMinOrMax</a><br />
Auch wenn davon natülic abzuraten ist <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="🙂"
    /><br />
Die entsprechende Funktion kannste dann 3 mal aufrufen und schon haste deine zahlen &quot;sortiert&quot;.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2135852</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2135852</guid><dc:creator><![CDATA[asdfasd]]></dc:creator><pubDate>Wed, 26 Oct 2011 04:49:18 GMT</pubDate></item><item><title><![CDATA[Reply to wie kann ich 3 Zahlen ohne Verwendung von logischen Operatoren sortigen???? auf C++ on Wed, 26 Oct 2011 05:11:39 GMT]]></title><description><![CDATA[<p>Edit: meinst du mit logischen Operatoren logisches Oder und Und (||, &amp;&amp;)?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2135854</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2135854</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 26 Oct 2011 05:11:39 GMT</pubDate></item><item><title><![CDATA[Reply to wie kann ich 3 Zahlen ohne Verwendung von logischen Operatoren sortigen???? auf C++ on Wed, 26 Oct 2011 06:21:58 GMT]]></title><description><![CDATA[<p>Ich habe so das Gefühl, als würden wir hier wieder eine Anfängerübung für den Fragesteller lösen müssen.</p>
<p>Gib dir wenigstens mehr Mühe bei der Formulierung deiner Anfrage.</p>
<p>@asdfasd ^ ist ein logischer Operator.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2135866</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2135866</guid><dc:creator><![CDATA[otze]]></dc:creator><pubDate>Wed, 26 Oct 2011 06:21:58 GMT</pubDate></item><item><title><![CDATA[Reply to wie kann ich 3 Zahlen ohne Verwendung von logischen Operatoren sortigen???? auf C++ on Wed, 26 Oct 2011 07:10:08 GMT]]></title><description><![CDATA[<p>Kendo schrieb:</p>
<blockquote>
<p>wie kann ich 3 Zahlen ohne Verwendung von logischen Operatoren sortigen auf C++</p>
</blockquote>
<p>Um mal eine Antwort zu geben, die in etwa so sinnvoll, ausführlich und leserfreundlich ist wie deine und der Mühe gerecht wird, die du dir bei der Fragestellung und dem vorherigen Versuch der Problemlösung scheinbar gegeben hast:</p>
<p>Indem du sie ganz normal sortierst, halt nur eben ohne logische Poeratroen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2135884</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2135884</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Wed, 26 Oct 2011 07:10:08 GMT</pubDate></item></channel></rss>