<?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[Anzahl und Gesamtfläche]]></title><description><![CDATA[<p>Hallo,<br />
Ich bin noch etwas &quot;grün hinter den Ohren&quot; was CPP betrifft und bräuchte etwas Hilfe...<br />
Ich habe folgende Aufgabenstellung:</p>
<p>Eingabe: Die Länge und die Breite beliebig vieler Rechtecke.<br />
Ausgabe: Anzahl der eingegebenen Rechtecke und Gesamtfläche aller eingegebenen Rechtecke.</p>
<p>Wie muß ich hier vorgehen?</p>
<p>Ich bin für jeden Tipp dankbar</p>
<p>vG<br />
BM</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/132468/anzahl-und-gesamtfläche</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 12:17:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/132468.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Jan 2006 08:31:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anzahl und Gesamtfläche on Wed, 11 Jan 2006 08:31:15 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Ich bin noch etwas &quot;grün hinter den Ohren&quot; was CPP betrifft und bräuchte etwas Hilfe...<br />
Ich habe folgende Aufgabenstellung:</p>
<p>Eingabe: Die Länge und die Breite beliebig vieler Rechtecke.<br />
Ausgabe: Anzahl der eingegebenen Rechtecke und Gesamtfläche aller eingegebenen Rechtecke.</p>
<p>Wie muß ich hier vorgehen?</p>
<p>Ich bin für jeden Tipp dankbar</p>
<p>vG<br />
BM</p>
]]></description><link>https://www.c-plusplus.net/forum/post/963274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/963274</guid><dc:creator><![CDATA[Black Merlin]]></dc:creator><pubDate>Wed, 11 Jan 2006 08:31:15 GMT</pubDate></item><item><title><![CDATA[Reply to Anzahl und Gesamtfläche on Wed, 11 Jan 2006 08:33:45 GMT]]></title><description><![CDATA[<p>fang an.</p>
<p>überleg, welche variablen du brauchst, mache eine eingabemöglichkeit.. und überleg dann, wie du berechnen musst.<br />
wenn du nicht weiterkommst, wieder posten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/963278</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/963278</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Wed, 11 Jan 2006 08:33:45 GMT</pubDate></item><item><title><![CDATA[Reply to Anzahl und Gesamtfläche on Wed, 11 Jan 2006 08:40:23 GMT]]></title><description><![CDATA[<p>das geht ja schnell hier......danke für die schnelle Reaktion!!!</p>
<p>Also die Variablen habe ich schon definiert und die Eingabemöglichkeit als Funktion erstellt (Ist Teil der Aufgabe), es hapert eigentlich nur an der Berechnung der Gesammtfläche und der Anzahl der eingegeben Rechtecke.<br />
Ich habe schon einiges ausprobiert aber es hat nix gefunzt.<br />
Mir würde schon ein Beispielcode reichen der so ähnlich aufgebaut ist wo ich meine Lösung ableiten kann.</p>
<p>vG<br />
BM</p>
]]></description><link>https://www.c-plusplus.net/forum/post/963281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/963281</guid><dc:creator><![CDATA[Black Merlin]]></dc:creator><pubDate>Wed, 11 Jan 2006 08:40:23 GMT</pubDate></item><item><title><![CDATA[Reply to Anzahl und Gesamtfläche on Wed, 11 Jan 2006 08:42:46 GMT]]></title><description><![CDATA[<p>Für die Anzahl der Rechtecke nimm einfach eine Variable und erhöhe bei jedem Rechteck das eingegeben wird den Wert um 1: var++;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/963282</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/963282</guid><dc:creator><![CDATA[EEK]]></dc:creator><pubDate>Wed, 11 Jan 2006 08:42:46 GMT</pubDate></item><item><title><![CDATA[Reply to Anzahl und Gesamtfläche on Wed, 11 Jan 2006 08:49:05 GMT]]></title><description><![CDATA[<p>hmmm ja.... wie sieht das dann in der praxis aus?<br />
In der Richtung hatte ich schon ein paar Versuche gestartet aber keinen Erfolg........leider</p>
]]></description><link>https://www.c-plusplus.net/forum/post/963287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/963287</guid><dc:creator><![CDATA[Black Merlin]]></dc:creator><pubDate>Wed, 11 Jan 2006 08:49:05 GMT</pubDate></item><item><title><![CDATA[Reply to Anzahl und Gesamtfläche on Wed, 11 Jan 2006 08:54:39 GMT]]></title><description><![CDATA[<p>Ich weiß ja nicht wie du das mit der eingabe mehrere Rechtecke gelöst hast, aber wenn du es z.B. mit einer Schleife gelöst hast dann etwa so:</p>
<pre><code class="language-cpp">int anzahl = 0;

 while(blablalba)
    {
        // Rechteck eingeben und berechnen
        anzahl++;
    }

 cout &lt;&lt; &quot;Es wurden &quot; &lt;&lt; anzahl &lt;&lt; &quot; Rechtecke eingegeben&quot; &lt;&lt; endl;
</code></pre>
<p>und mit der gesamtfläche kannst du es auch mit einer Variablen machen, speichere die Fläche in einer Variablen und addiere den neuen Wert immer dazu</p>
<pre><code class="language-cpp">float flaeche;

flaeche += laenge * breite;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/963293</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/963293</guid><dc:creator><![CDATA[EEK]]></dc:creator><pubDate>Wed, 11 Jan 2006 08:54:39 GMT</pubDate></item><item><title><![CDATA[Reply to Anzahl und Gesamtfläche on Wed, 11 Jan 2006 08:58:37 GMT]]></title><description><![CDATA[<p>JO, hab ich mit einer Schleife gemacht,........... teste ich gleich mal!<br />
Super vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/963302</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/963302</guid><dc:creator><![CDATA[Black Merlin]]></dc:creator><pubDate>Wed, 11 Jan 2006 08:58:37 GMT</pubDate></item><item><title><![CDATA[Reply to Anzahl und Gesamtfläche on Wed, 11 Jan 2006 09:21:25 GMT]]></title><description><![CDATA[<p>Ihr seit die Besten!<br />
Es funzt.....vielen, vielen Dank!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/963315</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/963315</guid><dc:creator><![CDATA[Black Merlin]]></dc:creator><pubDate>Wed, 11 Jan 2006 09:21:25 GMT</pubDate></item></channel></rss>