<?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[Brauche ein wenig Hilfe]]></title><description><![CDATA[<p>Hi ertsmal hoffe ich habe hier mit meiner Frage auch das richtige Forum erwischt^^ nunja also ich soll ein 9x9 Großes Feld Programmieren das komplett mit nullen ausgefüllt ist bis auf eine Nebendiagonale die einsen enthalten soll (siehe Beispiel!) tja nu und das kriege ich nicht hin.</p>
<p>010000000<br />
001000000<br />
000100000<br />
000010000<br />
000001000<br />
000000100<br />
000000010<br />
000000001<br />
000000000</p>
<p>Ich habe hier auch schon einen kleinen Code der bis jetzt allerdings nur die komplette Diagonale ausfüllt mit einsen , also die links daneben</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

using namespace std;

int main()
{
    int Sudoku_feld[9][9];

    for(int a=0;a&lt;9;a++)
    {
        for(int s=0;s&lt;9;s++)
        {
            if(a==s)
                Sudoku_feld[a][a]=1;
            else
                Sudoku_feld[a][s]=0;
            cout &lt;&lt; Sudoku_feld[a][s] &lt;&lt; &quot; &quot;;
        }
        cout &lt;&lt; endl;
    }
    cout &lt;&lt; endl;

            cin.ignore();
            cin.get();
            return 0;
}
</code></pre>
<p>Hoffe ihr könnt mir weiterhelfen! ich bin mir recht sicher das es an Zeile 13 liegen könnte, naja glaube ich zumindest!<br />
schonmal Thx Im Vorraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/229006/brauche-ein-wenig-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Mon, 28 Sep 2026 05:41:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/229006.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Dec 2008 18:57:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Brauche ein wenig Hilfe on Fri, 05 Dec 2008 18:57:40 GMT]]></title><description><![CDATA[<p>Hi ertsmal hoffe ich habe hier mit meiner Frage auch das richtige Forum erwischt^^ nunja also ich soll ein 9x9 Großes Feld Programmieren das komplett mit nullen ausgefüllt ist bis auf eine Nebendiagonale die einsen enthalten soll (siehe Beispiel!) tja nu und das kriege ich nicht hin.</p>
<p>010000000<br />
001000000<br />
000100000<br />
000010000<br />
000001000<br />
000000100<br />
000000010<br />
000000001<br />
000000000</p>
<p>Ich habe hier auch schon einen kleinen Code der bis jetzt allerdings nur die komplette Diagonale ausfüllt mit einsen , also die links daneben</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;

using namespace std;

int main()
{
    int Sudoku_feld[9][9];

    for(int a=0;a&lt;9;a++)
    {
        for(int s=0;s&lt;9;s++)
        {
            if(a==s)
                Sudoku_feld[a][a]=1;
            else
                Sudoku_feld[a][s]=0;
            cout &lt;&lt; Sudoku_feld[a][s] &lt;&lt; &quot; &quot;;
        }
        cout &lt;&lt; endl;
    }
    cout &lt;&lt; endl;

            cin.ignore();
            cin.get();
            return 0;
}
</code></pre>
<p>Hoffe ihr könnt mir weiterhelfen! ich bin mir recht sicher das es an Zeile 13 liegen könnte, naja glaube ich zumindest!<br />
schonmal Thx Im Vorraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1625957</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1625957</guid><dc:creator><![CDATA[Soulseller]]></dc:creator><pubDate>Fri, 05 Dec 2008 18:57:40 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche ein wenig Hilfe on Sat, 06 Dec 2008 06:42:22 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-275.html" rel="nofollow">Unix-Tom</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-1.html" rel="nofollow">MFC (Visual C++)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" 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/1626053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1626053</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sat, 06 Dec 2008 06:42:22 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche ein wenig Hilfe on Sat, 06 Dec 2008 07:29:50 GMT]]></title><description><![CDATA[<p>Im Moment hast du ja genau die Diagonale. Und wenn du eine andere willst, dann musst du das mathematisch Ausdrücken könne, was du willst. Du willst also, dass, wenn es in x-Richtung 1 und in y-Richtung 0 ist eine eins hingeschrieben wird?</p>
<p>Also konkret gesprochen:<br />
Wenn Y eins kleiner als X ist, dann kommt eine 1 hin</p>
<p>Bei dir ist ja s = x und a = y.</p>
<pre><code class="language-cpp">if(a==s-1)
  Sudoku_feld[a][s]=1;
</code></pre>
<p>So einfach ist das. Probier dir deine Wünsche immer so einfach, wie möglich selbst zu erklären, dann wird vieles gerade viel eifnacher. <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1626055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1626055</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sat, 06 Dec 2008 07:29:50 GMT</pubDate></item><item><title><![CDATA[Reply to Brauche ein wenig Hilfe on Sun, 07 Dec 2008 13:36:49 GMT]]></title><description><![CDATA[<p>Jo danke vielen dank! habe es gerafft und es funzt!!^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1626499</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1626499</guid><dc:creator><![CDATA[Soulseller]]></dc:creator><pubDate>Sun, 07 Dec 2008 13:36:49 GMT</pubDate></item></channel></rss>