<?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[if bedingung true?]]></title><description><![CDATA[<pre><code class="language-cpp">int timeout = 0;
int time_diff = 0;

if(timeout != 0 &amp;&amp; (timeout &gt;= time_diff + 100 || timeout &lt;= time_diff - 100))
</code></pre>
<p>was ich haben will: wenn timeout nicht true ist und time_diff nicht im bereich von timeout +- 100 liegt....dann</p>
<p>warum ist diese bedingung dann true?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/159322/if-bedingung-true</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 13:27:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/159322.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Sep 2006 22:35:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to if bedingung true? on Wed, 13 Sep 2006 22:35:35 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int timeout = 0;
int time_diff = 0;

if(timeout != 0 &amp;&amp; (timeout &gt;= time_diff + 100 || timeout &lt;= time_diff - 100))
</code></pre>
<p>was ich haben will: wenn timeout nicht true ist und time_diff nicht im bereich von timeout +- 100 liegt....dann</p>
<p>warum ist diese bedingung dann true?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1136968</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1136968</guid><dc:creator><![CDATA[sebi1]]></dc:creator><pubDate>Wed, 13 Sep 2006 22:35:35 GMT</pubDate></item><item><title><![CDATA[Reply to if bedingung true? on Wed, 13 Sep 2006 23:35:51 GMT]]></title><description><![CDATA[<p>Also mit den eingegebenen Daten ist die if-Anweisung schon mal false (logisch).</p>
<p>sebi1 schrieb:</p>
<blockquote>
<pre><code class="language-cpp">int timeout = 0;
int time_diff = 0;

if(timeout != 0 &amp;&amp; (timeout &gt;= time_diff + 100 || timeout &lt;= time_diff - 100))
</code></pre>
</blockquote>
<p>if( 0 &amp;&amp; ( 0 &gt;= 100 || 0 &lt;= - 100 ))<br />
=&gt; Nichts trifft zu, mit den vorgegebenen Werten!</p>
<p>Oder hab ich Deine Frage falsch verstanden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1136974</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1136974</guid><dc:creator><![CDATA[Stingray76]]></dc:creator><pubDate>Wed, 13 Sep 2006 23:35:51 GMT</pubDate></item><item><title><![CDATA[Reply to if bedingung true? on Thu, 14 Sep 2006 02:17:10 GMT]]></title><description><![CDATA[<p>sebi1 schrieb:</p>
<blockquote>
<pre><code class="language-cpp">if(timeout != 0 &amp;&amp; (timeout &gt;= time_diff + 100 || timeout &lt;= time_diff - 100))
</code></pre>
<p>was ich haben will: wenn timeout nicht true ist und time_diff nicht im bereich von timeout +- 100 liegt....dann</p>
</blockquote>
<p>also</p>
<pre><code class="language-cpp">if(timeout != 0 &amp;&amp; (time_diff &gt;= timeout + 100 || time_diff &lt;= timeout - 100))
</code></pre>
<p>bin jetzt nicht sicher, ob man hier timeout und time_diff vertauschen darf, aber ich fürchte, man darf nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1136984</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1136984</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Thu, 14 Sep 2006 02:17:10 GMT</pubDate></item><item><title><![CDATA[Reply to if bedingung true? on Thu, 14 Sep 2006 07:37:29 GMT]]></title><description><![CDATA[<p>Dein letzter Codeschnipsel gibt definitiv false zurück und vertauscht hast du es ja schon und es geht. Oder habe ich das mit dem vertauschen missverstanden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1137036</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1137036</guid><dc:creator><![CDATA[spacegaier]]></dc:creator><pubDate>Thu, 14 Sep 2006 07:37:29 GMT</pubDate></item></channel></rss>