<?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[Rekusrionproblem]]></title><description><![CDATA[<p>hy</p>
<p>wenn ich ein 2 dimsonales array[8][8] hab und ich würde es mit 1 bis 64 füllen<br />
und ich gib 63 ein dann soll mir die funktion stelle raus finde an in welcher spalte bzw zeile diese zahl stehen soll.</p>
<p>Ich hab ein vereinfachte version gemacht. Problem er bachtet return true oder retunr false fall nicht nicht sonder macht weiter. Was ist den falsch ?</p>
<pre><code class="language-cpp">#include&lt;conio&gt;
#include&lt;iostream&gt;
using namespace std;

bool stelle(int stell,int zeile,int spalte)
{
 if(stell==zeile+spalte)
   return true;
 if(spalte&gt;0)
 {
  stelle(stell,zeile,spalte-1);
  }
 if(a&lt;65)
 {
 stelle(stell,zeile+8,8);
 }
 if(zeile+spalte&gt;64)
    return false
}

void main()
{
 int c,d;
 bool erg;
 cin &gt;&gt; c;
 erg=stelle(c,0,8);
 cout &lt;&lt; erg;
 getch();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/150265/rekusrionproblem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 13:44:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/150265.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Jun 2006 15:36:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Rekusrionproblem on Wed, 14 Jun 2006 15:47:24 GMT]]></title><description><![CDATA[<p>hy</p>
<p>wenn ich ein 2 dimsonales array[8][8] hab und ich würde es mit 1 bis 64 füllen<br />
und ich gib 63 ein dann soll mir die funktion stelle raus finde an in welcher spalte bzw zeile diese zahl stehen soll.</p>
<p>Ich hab ein vereinfachte version gemacht. Problem er bachtet return true oder retunr false fall nicht nicht sonder macht weiter. Was ist den falsch ?</p>
<pre><code class="language-cpp">#include&lt;conio&gt;
#include&lt;iostream&gt;
using namespace std;

bool stelle(int stell,int zeile,int spalte)
{
 if(stell==zeile+spalte)
   return true;
 if(spalte&gt;0)
 {
  stelle(stell,zeile,spalte-1);
  }
 if(a&lt;65)
 {
 stelle(stell,zeile+8,8);
 }
 if(zeile+spalte&gt;64)
    return false
}

void main()
{
 int c,d;
 bool erg;
 cin &gt;&gt; c;
 erg=stelle(c,0,8);
 cout &lt;&lt; erg;
 getch();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1077731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1077731</guid><dc:creator><![CDATA[MacGyver1929]]></dc:creator><pubDate>Wed, 14 Jun 2006 15:47:24 GMT</pubDate></item><item><title><![CDATA[Reply to Rekusrionproblem on Wed, 14 Jun 2006 15:50:46 GMT]]></title><description><![CDATA[<p>Du musst deine rekursiven stelle-Aufrufe auch zurückgeben! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title="=)"
      alt="🙂"
    /></p>
<p>MfG Eisflamme</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1077738</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1077738</guid><dc:creator><![CDATA[Mis2com]]></dc:creator><pubDate>Wed, 14 Jun 2006 15:50:46 GMT</pubDate></item><item><title><![CDATA[Reply to Rekusrionproblem on Thu, 15 Jun 2006 05:52:31 GMT]]></title><description><![CDATA[<p>ich find die aufgabe eh ein wenig deplaziert für eine rekursion.<br />
eine iteration würde da auf jeden fall schneller laufen.</p>
<p>aber ich weiß, warum du gerade rekursion nehmen willst <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<p><em>Iteration ist menschlich... Rekursion ist göttlich</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1077937</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1077937</guid><dc:creator><![CDATA[_mika_]]></dc:creator><pubDate>Thu, 15 Jun 2006 05:52:31 GMT</pubDate></item><item><title><![CDATA[Reply to Rekusrionproblem on Thu, 15 Jun 2006 08:06:23 GMT]]></title><description><![CDATA[<p>hy</p>
<p>ich habes anderst gelöst</p>
<p>int zeile, spalte;</p>
<p>zeile = stell/8<br />
spalte=stell%8<br />
if(spalte==0)<br />
{<br />
zeile--;<br />
spalte=8;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1077984</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1077984</guid><dc:creator><![CDATA[MacGyver1929]]></dc:creator><pubDate>Thu, 15 Jun 2006 08:06:23 GMT</pubDate></item></channel></rss>