<?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 Abfrage funktioniert nicht]]></title><description><![CDATA[<p>Ich versuche gerade die Programmiersprache c++ zu lernen.<br />
Ich habe versucht eine If Abfrage einzubauen.<br />
Allerdings kann der Code nicht kompiliert werden.<br />
Weiß jemand wo da der Fehler liegt?<br />
code<br />
#include &lt;iostream&gt;<br />
using namespace std;</p>
<p>int main ()<br />
{</p>
<p>int a = 20;<br />
int b = 19;</p>
<p>if( a - b = 1 )<br />
{<br />
cout &lt;&lt; &quot;A Minus B ergibt 1&quot; &lt;&lt; endl;<br />
}</p>
<p>return 0;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/336214/if-abfrage-funktioniert-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 16:18:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/336214.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 10 Jan 2016 13:34:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to If Abfrage funktioniert nicht on Sun, 10 Jan 2016 13:34:45 GMT]]></title><description><![CDATA[<p>Ich versuche gerade die Programmiersprache c++ zu lernen.<br />
Ich habe versucht eine If Abfrage einzubauen.<br />
Allerdings kann der Code nicht kompiliert werden.<br />
Weiß jemand wo da der Fehler liegt?<br />
code<br />
#include &lt;iostream&gt;<br />
using namespace std;</p>
<p>int main ()<br />
{</p>
<p>int a = 20;<br />
int b = 19;</p>
<p>if( a - b = 1 )<br />
{<br />
cout &lt;&lt; &quot;A Minus B ergibt 1&quot; &lt;&lt; endl;<br />
}</p>
<p>return 0;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2482477</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2482477</guid><dc:creator><![CDATA[coolerschrank]]></dc:creator><pubDate>Sun, 10 Jan 2016 13:34:45 GMT</pubDate></item><item><title><![CDATA[Reply to If Abfrage funktioniert nicht on Sun, 10 Jan 2016 13:48:53 GMT]]></title><description><![CDATA[<p>coolerschrank schrieb:</p>
<blockquote>
<p>Ich versuche gerade die Programmiersprache c++ zu lernen.</p>
</blockquote>
<p>Prima.<br />
Aber hier ist das C Unterforum.<br />
^(Der Thread wird im Zweifel von einem Moderator verschoben)^</p>
<blockquote>
<p>Ich habe versucht eine If Abfrage einzubauen.<br />
Allerdings kann der Code nicht kompiliert werden.<br />
Weiß jemand wo da der Fehler liegt?</p>
</blockquote>
<p>Wenn es sich nicht compilieren läßt, gibt der Compiler eine Fehlermeldung.<br />
Die macht er nicht aus Spaß, sondern gibt wertvolle Hinweise zur Fehlerursache.</p>
<blockquote>
<p>Code:</p>
</blockquote>
<p>Dazu nimm bitte die Code, besser die C++ Tags.<br />
Zu finden unter den <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> :p</p>
<h1></h1>
<pre><code>include &lt;iostream&gt;
using namespace std;

int main ()
{

   int a = 20;
 int b = 19;

   if( a - b = 1 )
   {
    cout &lt;&lt; &quot;A Minus B ergibt 1&quot; &lt;&lt; endl;
   }

   return 0;
}
</code></pre>
<p>Du solltest dir nochmal den Vergleichsoperator für Gleichheit anschauen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2482478</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2482478</guid><dc:creator><![CDATA[DirkB]]></dc:creator><pubDate>Sun, 10 Jan 2016 13:48:53 GMT</pubDate></item><item><title><![CDATA[Reply to If Abfrage funktioniert nicht on Sun, 10 Jan 2016 17:23:00 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/u109509" rel="nofollow">SeppJ</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/f10" rel="nofollow">C (alle ISO-Standards)</a> in das Forum <a href="http://www.c-plusplus.net/forum/f15" rel="nofollow">C++ (alle ISO-Standards)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2482506</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2482506</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sun, 10 Jan 2016 17:23:00 GMT</pubDate></item></channel></rss>