<?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[Fibonacchi !???]]></title><description><![CDATA[<p>Hi habe also so n kleines Programm und ja möchte dass das ergebnis als fibonacchi wiedergegeben wird. also kann mir wer helfen? also zurzeit schauts so aus, also ganz anders. im label4 soll das ergebnis dann aufscheinen!</p>
<pre><code class="language-cpp">{
int summe, zahl, grenze;
if (Key==13)
   {
    grenze=StrToInt(Edit1-&gt;Text);

    Label4-&gt;Caption=&quot;&quot;;
    for(zahl=1,summe=0;zahl&lt;=grenze;zahl++)
    {
     summe=summe+zahl;
     Label4-&gt;Visible=true;
     if(zahl&lt;grenze)
      {
       Label4-&gt;Caption=Label4-&gt;Caption+zahl+&quot;+&quot;;
      }
      else
      {
       Label4-&gt;Caption=Label4-&gt;Caption+zahl+&quot;=&quot;+IntToStr(summe);
      }
    }

   }
}
</code></pre>
<p>Also bitte bitte bitte helft mir!!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/171654/fibonacchi</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 12:17:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/171654.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 Jan 2007 21:35:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fibonacchi !??? on Sat, 27 Jan 2007 21:35:51 GMT]]></title><description><![CDATA[<p>Hi habe also so n kleines Programm und ja möchte dass das ergebnis als fibonacchi wiedergegeben wird. also kann mir wer helfen? also zurzeit schauts so aus, also ganz anders. im label4 soll das ergebnis dann aufscheinen!</p>
<pre><code class="language-cpp">{
int summe, zahl, grenze;
if (Key==13)
   {
    grenze=StrToInt(Edit1-&gt;Text);

    Label4-&gt;Caption=&quot;&quot;;
    for(zahl=1,summe=0;zahl&lt;=grenze;zahl++)
    {
     summe=summe+zahl;
     Label4-&gt;Visible=true;
     if(zahl&lt;grenze)
      {
       Label4-&gt;Caption=Label4-&gt;Caption+zahl+&quot;+&quot;;
      }
      else
      {
       Label4-&gt;Caption=Label4-&gt;Caption+zahl+&quot;=&quot;+IntToStr(summe);
      }
    }

   }
}
</code></pre>
<p>Also bitte bitte bitte helft mir!!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218365</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218365</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sat, 27 Jan 2007 21:35:51 GMT</pubDate></item><item><title><![CDATA[Reply to Fibonacchi !??? on Sat, 27 Jan 2007 23:54:21 GMT]]></title><description><![CDATA[<p>gehts dir nur darum die Fibonnaci zahlen zu haben oder willst du sie wirklich über die definition der Zahlen ausrechnen lassen, ansonsten muss ich mal schauen, in den alten vorlesungsheftern steht noch die lösung der Rekursion drinnen. da kann man die zahlen direkt berechnen ohne die CPU erstmal durch die ganzen schleifen zu jagen, ne rekursive Lösung wäre auch möglich nur hier wohl die denkbar schlechteste.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218417</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218417</guid><dc:creator><![CDATA[Fedaykin]]></dc:creator><pubDate>Sat, 27 Jan 2007 23:54:21 GMT</pubDate></item><item><title><![CDATA[Reply to Fibonacchi !??? on Sat, 27 Jan 2007 23:56:57 GMT]]></title><description><![CDATA[<p><a href="http://www.volkard.de/vcppkold/rekursion__loesungsvorschlag_iterativ.html" rel="nofollow">http://www.volkard.de/vcppkold/rekursion__loesungsvorschlag_iterativ.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218418</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218418</guid><dc:creator><![CDATA[Raven2]]></dc:creator><pubDate>Sat, 27 Jan 2007 23:56:57 GMT</pubDate></item><item><title><![CDATA[Reply to Fibonacchi !??? on Sun, 28 Jan 2007 15:01:58 GMT]]></title><description><![CDATA[<p>danke Raven2 für den lösungsvorschlag.<br />
naja ich kenn mich ja wenig aus... könntest du das alles so in meinen Code oben einbauen, dass es dann auch wirklich stimmt !?? Bitteeee!!! Aber bitte so in meiner Form... Das wär echt sooo nett!!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218644</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218644</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sun, 28 Jan 2007 15:01:58 GMT</pubDate></item><item><title><![CDATA[Reply to Fibonacchi !??? on Sun, 28 Jan 2007 15:14:11 GMT]]></title><description><![CDATA[<p>hast du das überhaupt selber geschrieben oder abgetippt ? oder warum soll man es noch wie du formatieren ?<br />
drück halt mal bissel mehr code raus oder zeig mehr ansätze, oder wie soll ich sehen was du mit Labe14 machen willst ?</p>
<p>ps. dumme namenwahl</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218649</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218649</guid><dc:creator><![CDATA[Stelfer]]></dc:creator><pubDate>Sun, 28 Jan 2007 15:14:11 GMT</pubDate></item><item><title><![CDATA[Reply to Fibonacchi !??? on Sun, 28 Jan 2007 15:22:17 GMT]]></title><description><![CDATA[<p>in der schule zusammen gemacht.. ich finds sehr kompliziert</p>
<p>und es heißt nich Labe14 sondern Label4</p>
<p>ja ich hätts gern so wie ich den ansatz hab weil ich es sonst nicht richtig versteh ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218654</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218654</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sun, 28 Jan 2007 15:22:17 GMT</pubDate></item><item><title><![CDATA[Reply to Fibonacchi !??? on Sun, 28 Jan 2007 16:24:12 GMT]]></title><description><![CDATA[<p>Mach ich doch gerne:</p>
<pre><code class="language-cpp">if (Key==13)
   {
    unsigned n=StrToInt(Edit1-&gt;Text);

    Label4-&gt;Caption=&quot;&quot;;
    Label4-&gt;Visible=true;

	unsigned result = 1;
	unsigned tmp1 = 1, tmp2 = 1;
    Label4-&gt;Caption = IntToStr(result);

    if( n &gt; 1 )
       Label4-&gt;Caption = Label4-&gt;Caption + &quot; &quot; + IntToStr(result);

	for( unsigned i = 3; i &lt;= n; ++i )
	{
		result = tmp1 + tmp2;
            Label4-&gt;Caption = Label4-&gt;Caption + &quot; &quot; + IntToStr(result);
		tmp1 = tmp2;
		tmp2 = tmp2 + 1;
	}

   }
</code></pre>
<p>Edit:<br />
jetzt passt auch die Formatierung</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218702</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218702</guid><dc:creator><![CDATA[lolz]]></dc:creator><pubDate>Sun, 28 Jan 2007 16:24:12 GMT</pubDate></item><item><title><![CDATA[Reply to Fibonacchi !??? on Sun, 28 Jan 2007 17:04:38 GMT]]></title><description><![CDATA[<p>danke.. ne allerletzte frage hätt ich noch:</p>
<p>also was genau ist</p>
<pre><code class="language-cpp">unsigned tmp1
</code></pre>
<p>bei mir???<br />
also in meiner schreibweise.. !?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218725</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sun, 28 Jan 2007 17:04:38 GMT</pubDate></item><item><title><![CDATA[Reply to Fibonacchi !??? on Sun, 28 Jan 2007 17:10:37 GMT]]></title><description><![CDATA[<p>Gar nichts, da du tmp1 und tmp2 nicht hast.<br />
Dein Algorithmus ist fehlerhaft, daher kannst du das so gar nicht vergleichen.<br />
Du benutzt den Schleifenzähler und die summe um die nächste Zahl zu berechnen, das geht aber so nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218728</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218728</guid><dc:creator><![CDATA[lolz]]></dc:creator><pubDate>Sun, 28 Jan 2007 17:10:37 GMT</pubDate></item><item><title><![CDATA[Reply to Fibonacchi !??? on Sun, 28 Jan 2007 17:15:13 GMT]]></title><description><![CDATA[<p>ja hab das jetzt so gemacht. einfach statt tmp1,.. int zahl1 genommen</p>
<pre><code class="language-cpp">{
 int summe, zahl, grenze;
  int zahl1, zahl2;
if (Key==13)
   {
    grenze=StrToInt(Edit1-&gt;Text);

    Label3-&gt;Caption=&quot;&quot;;
    Label3-&gt;Visible=true;

    summe = 1;
    zahl1 = 1, zahl2 = 1;
    Label3-&gt;Caption = IntToStr(summe);

    if(zahl&gt;1)
       Label3-&gt;Caption=Label3-&gt;Caption+&quot;,&quot;+IntToStr(summe);

    for(zahl=3;zahl&lt;=grenze;zahl++)
    { 
        summe = zahl1 + zahl2;
            Label3-&gt;Caption=Label3-&gt;Caption+&quot;,&quot;+IntToStr(summe);
        zahl1=zahl2;
        zahl2=zahl2+ 1;
    }

   }

   }
</code></pre>
<p>aber muss man nicht den IF befehl in die for-schleife reinmachen oder ist das egal?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218731</guid><dc:creator><![CDATA[LoSt]]></dc:creator><pubDate>Sun, 28 Jan 2007 17:15:13 GMT</pubDate></item><item><title><![CDATA[Reply to Fibonacchi !??? on Sun, 28 Jan 2007 22:11:19 GMT]]></title><description><![CDATA[<p>Nein, das ist nur dazu da, weil die 1 zwei mal in der Reihe auftaucht, wenn die Grenze größer wie 1 ist, dann steht da &quot;1 1 &quot; und danach kann man es ja normal ausrechnen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218894</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218894</guid><dc:creator><![CDATA[lolz]]></dc:creator><pubDate>Sun, 28 Jan 2007 22:11:19 GMT</pubDate></item><item><title><![CDATA[Reply to Fibonacchi !??? on Mon, 29 Jan 2007 05:42:37 GMT]]></title><description><![CDATA[<p>Fibonacci <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218961</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218961</guid><dc:creator><![CDATA[Fibonacci]]></dc:creator><pubDate>Mon, 29 Jan 2007 05:42:37 GMT</pubDate></item></channel></rss>