<?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[Übersetzung in C++?]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin gerade dabei mich mit locigal operators in c++ auseinanderzusetzen!</p>
<p>Was bedeuten dann folgende Sachen genau? Kann es irgendwie noch nicht so richtig deuten :</p>
<ol>
<li>
<p>a&gt;b || a!=c &amp;&amp; b&gt;c</p>
</li>
<li>
<p>(ch == ’q’ || ch == ’Q’) &amp;&amp; mouseButtonState != pressed</p>
</li>
<li>
<p>x-y&gt;0 &amp;&amp; x != y &amp;&amp; (x+y &lt;=0 || x==y)</p>
</li>
</ol>
<p>bei 1) bedeutet es ja: &quot; a ist größer als b oder a ist nich c und b ist größer als c&quot; oder?</p>
<p>Gruß</p>
<p>Gustlbert</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/301152/übersetzung-in-c</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 06:37:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/301152.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Mar 2012 19:47:38 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Übersetzung in C++? on Tue, 20 Mar 2012 19:47:38 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich bin gerade dabei mich mit locigal operators in c++ auseinanderzusetzen!</p>
<p>Was bedeuten dann folgende Sachen genau? Kann es irgendwie noch nicht so richtig deuten :</p>
<ol>
<li>
<p>a&gt;b || a!=c &amp;&amp; b&gt;c</p>
</li>
<li>
<p>(ch == ’q’ || ch == ’Q’) &amp;&amp; mouseButtonState != pressed</p>
</li>
<li>
<p>x-y&gt;0 &amp;&amp; x != y &amp;&amp; (x+y &lt;=0 || x==y)</p>
</li>
</ol>
<p>bei 1) bedeutet es ja: &quot; a ist größer als b oder a ist nich c und b ist größer als c&quot; oder?</p>
<p>Gruß</p>
<p>Gustlbert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2193352</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2193352</guid><dc:creator><![CDATA[gustlbert]]></dc:creator><pubDate>Tue, 20 Mar 2012 19:47:38 GMT</pubDate></item><item><title><![CDATA[Reply to Übersetzung in C++? on Tue, 20 Mar 2012 19:57:54 GMT]]></title><description><![CDATA[<p>hi, zu 1 hast bi Recht zu 2 für mich sieht es nach winapi aus, also Windows, vermutlich eine Prüfung nach ob q oder Q gedruckt würde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2193354</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2193354</guid><dc:creator><![CDATA[w81]]></dc:creator><pubDate>Tue, 20 Mar 2012 19:57:54 GMT</pubDate></item><item><title><![CDATA[Reply to Übersetzung in C++? on Tue, 20 Mar 2012 19:59:48 GMT]]></title><description><![CDATA[<ol start="3">
<li>scheint ziemlicher Unsinn zu sein, zuerst wird verlangt dass x&gt;y, dann dass x!=y, was ja erstere Bedingung schon überprüft, und dann wird wieder gefragt ob x==y.^^</li>
</ol>
]]></description><link>https://www.c-plusplus.net/forum/post/2193355</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2193355</guid><dc:creator><![CDATA[Thuruk]]></dc:creator><pubDate>Tue, 20 Mar 2012 19:59:48 GMT</pubDate></item><item><title><![CDATA[Reply to Übersetzung in C++? on Tue, 20 Mar 2012 19:59:57 GMT]]></title><description><![CDATA[<p>gustlbert schrieb:</p>
<blockquote>
<p>Hallo,</p>
<p>ich bin gerade dabei mich mit locigal operators in c++ auseinanderzusetzen!</p>
<p>Was bedeuten dann folgende Sachen genau? Kann es irgendwie noch nicht so richtig deuten :</p>
<ol>
<li>a&gt;b || a!=c &amp;&amp; b&gt;c</li>
</ol>
</blockquote>
<p>(a ungleich c und b grösser c) oder a grösser b<br />
Beachte hier, dass &amp;&amp; stärker bindet als ||.</p>
<blockquote>
<ol start="2">
<li>(ch == ’q’ || ch == ’Q’) &amp;&amp; mouseButtonState != pressed</li>
</ol>
</blockquote>
<p>ch muss 'q' oder 'Q' sein und mousebuttonState ungleich pressed.</p>
<blockquote>
<ol start="3">
<li>x-y&gt;0 &amp;&amp; x != y &amp;&amp; (x+y &lt;=0 || x==y)</li>
</ol>
</blockquote>
<p>Beachte hier einfach was wohin gehört:<br />
(x-y&gt;0) &amp;&amp; (x != y) &amp;&amp; ( (x+y) &lt;=0 || x==y)</p>
<p>Ist das klar oder was verstehst du nicht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2193356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2193356</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Tue, 20 Mar 2012 19:59:57 GMT</pubDate></item><item><title><![CDATA[Reply to Übersetzung in C++? on Tue, 20 Mar 2012 20:11:45 GMT]]></title><description><![CDATA[<p>Okay Vielen Dank!<br />
Aber wo beginnt man dann bei 3) zu lesen, wenn &amp;&amp; stärker bindet als || ?<br />
Weil übersetzt macht 3) für mich irgendwie nicht viel sinn!</p>
<p>(x-y größer als 0 und x ungleich y) und (x+y kleiner gleich 0 oder x=y)?<br />
aber man hat ja davor x ungleich y definiert und danach setzt man beide variablen gleich?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2193360</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2193360</guid><dc:creator><![CDATA[gustlbert]]></dc:creator><pubDate>Tue, 20 Mar 2012 20:11:45 GMT</pubDate></item><item><title><![CDATA[Reply to Übersetzung in C++? on Tue, 20 Mar 2012 20:34:28 GMT]]></title><description><![CDATA[<p>gustlbert schrieb:</p>
<blockquote>
<p>Okay Vielen Dank!<br />
Aber wo beginnt man dann bei 3) zu lesen, wenn &amp;&amp; stärker bindet als || ?<br />
Weil übersetzt macht 3) für mich irgendwie nicht viel sinn!</p>
</blockquote>
<p>Du kannst das so lesen: entweder (a&gt;b) ODER ( a!=c UND b&gt;c)<br />
beachte, dass &amp;&amp;(logisch UND) stärker bindet, daher die Klammersetzung!</p>
<p>gustlbert schrieb:</p>
<blockquote>
<p>(x-y größer als 0 und x ungleich y) und (x+y kleiner gleich 0 oder x=y)?<br />
aber man hat ja davor x ungleich y definiert und danach setzt man beide variablen gleich?!</p>
</blockquote>
<ol start="3">
<li>x-y&gt;0 &amp;&amp; x != y &amp;&amp; (x+y &lt;=0 || x==y)</li>
</ol>
<p>beachte hier wieder:</p>
<p>x-y&gt;0 muss zutreffen UND x!=y muss zutreffen UND (x+y&lt;=0 muss zutreffen ODER x==y muss zutreffen)</p>
<p>[EDIT]: Man hat nicht x ungleich y definiert, du überprüfst lediglich, ob x ungleich y ist! bei x==y überprüfst du, ob x gleich groß wie y ist!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2193365</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2193365</guid><dc:creator><![CDATA[Syntax_error]]></dc:creator><pubDate>Tue, 20 Mar 2012 20:34:28 GMT</pubDate></item><item><title><![CDATA[Reply to Übersetzung in C++? on Tue, 20 Mar 2012 20:30:16 GMT]]></title><description><![CDATA[<p>Eigentlich heißt es ja nur -y&gt;=x&gt;y. Das ist beispielsweise für x=0, y=-1 erfüllt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2193366</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2193366</guid><dc:creator><![CDATA[Thuruk]]></dc:creator><pubDate>Tue, 20 Mar 2012 20:30:16 GMT</pubDate></item></channel></rss>