<?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[Ich komm nicht mehr weiter!]]></title><description><![CDATA[<p>Hallo<br />
ich programmiere seit zwei monaten c++ und arbeite mit code blocks<br />
bei folgendem Quellcode:</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;
//Funktion zum Satz des Pythagoras//
//a und b stehen für die jeweilige Seitenlänge der beiden Katheten und c für die Hypotenuse//

int a=0, b=0;
float c=0;
int in(int a, int b)
{
    a=(a*a);
    b=(b*b);
    c=(c*c);
    a+b = c;
}

int main()
{
    printf(&quot;Der Satz des Pythagoras:\n&quot;);
    printf(&quot;Geben sie die Seitenlängen der Katheten an:&quot;);
    scanf(&quot;%d,%d\n&quot;, a, b);

    int in(int a, int b);

    printf(&quot;Das Quadrat über der Hypotenuse beträgt:%f&quot;, c);
return 0;
}
</code></pre>
<p>zeigt der kompilierer folgende fehlermeldung an:<br />
line 12 error C2106: '=': Linker operand muss ein L-Wert sein</p>
<p>kann mir bite jemand helfen!!<br />
gruß pepe1995</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/254338/ich-komm-nicht-mehr-weiter</link><generator>RSS for Node</generator><lastBuildDate>Thu, 10 Sep 2026 15:25:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/254338.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 15 Nov 2009 11:39:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 11:39:22 GMT]]></title><description><![CDATA[<p>Hallo<br />
ich programmiere seit zwei monaten c++ und arbeite mit code blocks<br />
bei folgendem Quellcode:</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;
//Funktion zum Satz des Pythagoras//
//a und b stehen für die jeweilige Seitenlänge der beiden Katheten und c für die Hypotenuse//

int a=0, b=0;
float c=0;
int in(int a, int b)
{
    a=(a*a);
    b=(b*b);
    c=(c*c);
    a+b = c;
}

int main()
{
    printf(&quot;Der Satz des Pythagoras:\n&quot;);
    printf(&quot;Geben sie die Seitenlängen der Katheten an:&quot;);
    scanf(&quot;%d,%d\n&quot;, a, b);

    int in(int a, int b);

    printf(&quot;Das Quadrat über der Hypotenuse beträgt:%f&quot;, c);
return 0;
}
</code></pre>
<p>zeigt der kompilierer folgende fehlermeldung an:<br />
line 12 error C2106: '=': Linker operand muss ein L-Wert sein</p>
<p>kann mir bite jemand helfen!!<br />
gruß pepe1995</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1808216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808216</guid><dc:creator><![CDATA[pepe1995]]></dc:creator><pubDate>Sun, 15 Nov 2009 11:39:22 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 11:48:44 GMT]]></title><description><![CDATA[<p>Das ist C, kein C++.</p>
<p>Deklariere a und b bitte erst mal<br />
Und entferne bei dem Aufruf von in() die Typnamen vor den Parametern, dann gehts:</p>
<pre><code class="language-cpp">int main()
{
    printf(&quot;Der Satz des Pythagoras:\n&quot;);
    printf(&quot;Geben sie die Seitenlängen der Katheten an:&quot;);

    int a;
    int b;
    scanf(&quot;%d,%d\n&quot;, a, b);

    int c = in(a, b);

    printf(&quot;Das Quadrat über der Hypotenuse beträgt:%f&quot;, c);
return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1808223</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808223</guid><dc:creator><![CDATA[Icematix]]></dc:creator><pubDate>Sun, 15 Nov 2009 11:48:44 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 11:51:19 GMT]]></title><description><![CDATA[<p>Mit dem Ausdruck &quot;a + b&quot; erzeugst du einen Rvalue, der muss immer rechts stehen. Bei dir steht rechts von &quot;=&quot; aber ein Lvalue. Vertausch das!</p>
<pre><code class="language-cpp">#include &lt;cstdio&gt;

int in(int a, int b)
{
    a = (a * a);
    b = (b * b);
    //c = (c*c); Diese Zeile ist nutzlos, c brauchst du garnicht
    return (a + b);
}

...
</code></pre>
<p>Dein Code ist C. Was programmierst du? C oder C++?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1808225</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808225</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Sun, 15 Nov 2009 11:51:19 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 11:51:18 GMT]]></title><description><![CDATA[<p>Zeile 9-11 Klammern weg. Aber warum a + b = c oO. Und warum uneinheitliche Datentypen? Mach doch alles mit floats. Und welche Seite möchtest du überhaupt ausrechnen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1808227</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808227</guid><dc:creator><![CDATA[Kóyaánasqatsi]]></dc:creator><pubDate>Sun, 15 Nov 2009 11:51:18 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 12:05:07 GMT]]></title><description><![CDATA[<p>könnte mir jemand vielleicht den ganzen quellcode in c schreiben, damit ich es kapieren kann<br />
wär nett thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1808235</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808235</guid><dc:creator><![CDATA[pepe1995]]></dc:creator><pubDate>Sun, 15 Nov 2009 12:05:07 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 12:07:59 GMT]]></title><description><![CDATA[<p>-nix-</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1808237</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808237</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Sun, 15 Nov 2009 12:07:59 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 12:12:10 GMT]]></title><description><![CDATA[<p>Du bist hier im C++ Forum du Dödel <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/1808244</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808244</guid><dc:creator><![CDATA[Kóyaánasqatsi]]></dc:creator><pubDate>Sun, 15 Nov 2009 12:12:10 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 14:18:28 GMT]]></title><description><![CDATA[<p>pepe1995 schrieb:</p>
<blockquote>
<p>könnte mir jemand vielleicht den ganzen quellcode in c schreiben, damit ich es kapieren kann<br />
wär nett thx</p>
</blockquote>
<p>Du meinst sicher kopieren? Nein, das darfst du schon selbst machen. Dein Code ist übrigens C, wenn schon, müsstest du ihn in C++ umschreiben.</p>
<p>Aber ein paar Tipps: Statt <code>printf()</code> kannst du <code>cout</code> nehmen, statt <code>scanf()</code>  <code>cin</code> und statt <code>&lt;stdio.h&gt;</code> den Header <code>&lt;iostream&gt;</code> . Wenn du ein brauchbares C++-Buch hast, sollten diese Dinge sehr früh erklärt sein.</p>
<p>Globale Variablen sind ausserdem etwas witzlos, wenn du Parameter einsetzt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1808332</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808332</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 15 Nov 2009 14:18:28 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 15:53:24 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
//Funktion zum Satz des Pythagoras//
//a und b stehen für die jeweilige Seitenlänge der beiden Katheten und c für die Hypotenuse//

using namespace std ;

float in(int in_a, int in_b)
{

	float c ;

	in_a=(in_a*in_a);
	in_b=(in_b*in_b);

	c= in_a + in_b ;
	c=(c*c);

	cout &lt;&lt; &quot;Das Quadrat über der Hypotenuse beträgt: &quot; &lt;&lt; c ;
}

int main()
{
	int a, b ;

	cout &lt;&lt; &quot;Der Satz des Pythagoras. &quot; &lt;&lt; endl ;
	cout &lt;&lt; &quot;Geben sie die Seitenlängen der Katheten an:&quot;&lt;&lt; endl ;
	cout &lt;&lt; &quot;(a) &gt;&gt;&quot; ;
	cin &gt;&gt; a ;
	cout &lt;&lt; endl &lt;&lt; &quot;(b) &gt;&gt;&quot; &lt;&lt; endl ;
	cin &gt;&gt;b ;

	in(a,b) ;

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1808383</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808383</guid><dc:creator><![CDATA[narfd]]></dc:creator><pubDate>Sun, 15 Nov 2009 15:53:24 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 16:01:54 GMT]]></title><description><![CDATA[<blockquote>
<pre><code class="language-cpp">c= in_a + in_b ;
    c=(c*c);
</code></pre>
</blockquote>
<p>Epic Fail. Geh bitte zurück in die 5. Klasse.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1808384</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808384</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Sun, 15 Nov 2009 16:01:54 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 16:16:39 GMT]]></title><description><![CDATA[<p>Dir wird vielleicht aufgefallen sein dass das von oben übernommen wurde.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1808398</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808398</guid><dc:creator><![CDATA[narfd]]></dc:creator><pubDate>Sun, 15 Nov 2009 16:16:39 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 16:25:47 GMT]]></title><description><![CDATA[<p>Wenn du schon am korrigieren bist, dann bitte wirklich richtig, ja? Logische Fehler sind neben syntaktischen <em>auch</em> Programmfehler.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1808406</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808406</guid><dc:creator><![CDATA[Ad aCTa]]></dc:creator><pubDate>Sun, 15 Nov 2009 16:25:47 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 16:29:14 GMT]]></title><description><![CDATA[<p>Ich habe nichts korrigiert, ich habe etwas umgeschrieben.</p>
<p>Desweiteren trägst du hier auch nichts produktives bei.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1808408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808408</guid><dc:creator><![CDATA[narfd]]></dc:creator><pubDate>Sun, 15 Nov 2009 16:29:14 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Sun, 15 Nov 2009 18:10:52 GMT]]></title><description><![CDATA[<p>a² + b² = c²</p>
<p>c = ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1808459</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1808459</guid><dc:creator><![CDATA[EOP]]></dc:creator><pubDate>Sun, 15 Nov 2009 18:10:52 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Tue, 22 Dec 2009 18:49:01 GMT]]></title><description><![CDATA[<p>ich habs<br />
wie schreibt man eine wurzel in c/c++?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1826540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1826540</guid><dc:creator><![CDATA[pepe1995]]></dc:creator><pubDate>Tue, 22 Dec 2009 18:49:01 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Tue, 22 Dec 2009 18:51:58 GMT]]></title><description><![CDATA[<p><a href="http://www.cplusplus.com/reference/clibrary/cmath/sqrt/" rel="nofollow">http://www.cplusplus.com/reference/clibrary/cmath/sqrt/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1826544</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1826544</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Tue, 22 Dec 2009 18:51:58 GMT</pubDate></item><item><title><![CDATA[Reply to Ich komm nicht mehr weiter! on Tue, 22 Dec 2009 18:52:00 GMT]]></title><description><![CDATA[<p><a href="http://www.cplusplus.com/reference/clibrary/cmath/sqrt/" rel="nofollow"> <code>sqrt()</code> </a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1826545</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1826545</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Tue, 22 Dec 2009 18:52:00 GMT</pubDate></item></channel></rss>