<?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[farbige Ausgabe]]></title><description><![CDATA[<p>Hallo, mein Programm läuft wunderbar ....</p>
<p>jetzt möchte ich, daß er bei negativen Ergebnissen in der Konsole bei Xcode die ZAHLEN ROT FÄRBT: Ich mach das mit einer if-Struktur.</p>
<p>Wie aber mach ich das rot. Früher gab dafür Sequenzen, wie &lt;rot&gt; und &lt;/rot&gt; etc....</p>
<p>aber hier weiß ich nicht weiter. Im C++ Buch steht selbstverständlich nichts über die Ide Xcode...</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;vector&gt;
#include &lt;stdio.h&gt;
#include &lt;math.h&gt;
#include &lt;list&gt;
using namespace std;

double a = 945;
int b=1;
int n;
int Teilersumme=0;
int Teileranzahl=0;
vector&lt;int&gt;TeilerSammler(0);
int zehler=1;

int main(int argc, const char * argv[])
{
    while (a&lt;100000)
    {
        Teilersumme=0;

        for (b=floor(a/2);b&gt;=1;b=b-1)
        {
        //cout&lt;&lt;a&lt;&lt;&quot;/&quot;&lt;&lt;b&lt;&lt;&quot; = &quot;&lt;&lt;a/b&lt;&lt;&quot;  &quot;;
        n=a;
               if (n % b == 0)
                {
                Teilersumme=Teilersumme+b;
                Teileranzahl++;
                TeilerSammler.push_back(b);
                }
               //cout&lt;&lt;Teilersumme&lt;&lt;&quot; =TS\n&quot;;

        }
        cout&lt;&lt;zehler&lt;&lt;&quot;. &quot;&lt;&lt;a&lt;&lt;&quot; hat &quot;&lt;&lt;Teileranzahl&lt;&lt;&quot; Teiler  TS= &quot;&lt;&lt;Teilersumme&lt;&lt;&quot; Dif= &quot;&lt;&lt;Teilersumme-a&lt;&lt;&quot;\n&quot;;
        /*cout&lt;&lt;&quot; Teiler: &quot;;
            for(auto it=TeilerSammler.begin();it!=TeilerSammler.end();it++)
            {
            cout&lt;&lt;*it&lt;&lt;&quot;, &quot;;
            }
         cout&lt;&lt;&quot;\n\n&quot;;
        */
        cout&lt;&lt;&quot;\n&quot;;
        a=a+630;
        TeilerSammler.clear();
        Teileranzahl=0;
        zehler++;       
    }
    return(0);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/327960/farbige-ausgabe</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Jul 2026 15:27:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/327960.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 13 Sep 2014 10:15:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to farbige Ausgabe on Sat, 13 Sep 2014 11:22:07 GMT]]></title><description><![CDATA[<p>Hallo, mein Programm läuft wunderbar ....</p>
<p>jetzt möchte ich, daß er bei negativen Ergebnissen in der Konsole bei Xcode die ZAHLEN ROT FÄRBT: Ich mach das mit einer if-Struktur.</p>
<p>Wie aber mach ich das rot. Früher gab dafür Sequenzen, wie &lt;rot&gt; und &lt;/rot&gt; etc....</p>
<p>aber hier weiß ich nicht weiter. Im C++ Buch steht selbstverständlich nichts über die Ide Xcode...</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;vector&gt;
#include &lt;stdio.h&gt;
#include &lt;math.h&gt;
#include &lt;list&gt;
using namespace std;

double a = 945;
int b=1;
int n;
int Teilersumme=0;
int Teileranzahl=0;
vector&lt;int&gt;TeilerSammler(0);
int zehler=1;

int main(int argc, const char * argv[])
{
    while (a&lt;100000)
    {
        Teilersumme=0;

        for (b=floor(a/2);b&gt;=1;b=b-1)
        {
        //cout&lt;&lt;a&lt;&lt;&quot;/&quot;&lt;&lt;b&lt;&lt;&quot; = &quot;&lt;&lt;a/b&lt;&lt;&quot;  &quot;;
        n=a;
               if (n % b == 0)
                {
                Teilersumme=Teilersumme+b;
                Teileranzahl++;
                TeilerSammler.push_back(b);
                }
               //cout&lt;&lt;Teilersumme&lt;&lt;&quot; =TS\n&quot;;

        }
        cout&lt;&lt;zehler&lt;&lt;&quot;. &quot;&lt;&lt;a&lt;&lt;&quot; hat &quot;&lt;&lt;Teileranzahl&lt;&lt;&quot; Teiler  TS= &quot;&lt;&lt;Teilersumme&lt;&lt;&quot; Dif= &quot;&lt;&lt;Teilersumme-a&lt;&lt;&quot;\n&quot;;
        /*cout&lt;&lt;&quot; Teiler: &quot;;
            for(auto it=TeilerSammler.begin();it!=TeilerSammler.end();it++)
            {
            cout&lt;&lt;*it&lt;&lt;&quot;, &quot;;
            }
         cout&lt;&lt;&quot;\n\n&quot;;
        */
        cout&lt;&lt;&quot;\n&quot;;
        a=a+630;
        TeilerSammler.clear();
        Teileranzahl=0;
        zehler++;       
    }
    return(0);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2417362</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2417362</guid><dc:creator><![CDATA[brak]]></dc:creator><pubDate>Sat, 13 Sep 2014 11:22:07 GMT</pubDate></item><item><title><![CDATA[Reply to farbige Ausgabe on Sat, 13 Sep 2014 15:36:38 GMT]]></title><description><![CDATA[<p>Falsches Forum, hier ist C++/CLI, eine .NET Sprache.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2417395</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2417395</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Sat, 13 Sep 2014 15:36:38 GMT</pubDate></item><item><title><![CDATA[Reply to farbige Ausgabe on Sat, 13 Sep 2014 16:01:33 GMT]]></title><description><![CDATA[<p>was heißt denn .NET-Sprache?</p>
<p>und in welches Forum muß ich?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2417397</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2417397</guid><dc:creator><![CDATA[brak]]></dc:creator><pubDate>Sat, 13 Sep 2014 16:01:33 GMT</pubDate></item><item><title><![CDATA[Reply to farbige Ausgabe on Sun, 14 Sep 2014 08:13:45 GMT]]></title><description><![CDATA[<p>--&gt; <a href="http://www.c-plusplus.net/forum/f15" rel="nofollow">C++ (alle ISO-Standards)</a></p>
<p>Aber ein Mod wird diesen Beitrag dann wohl verschieben.</p>
<p>PS. <a href="http://de.wikipedia.org/wiki/.NET" rel="nofollow">.NET</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2417457</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2417457</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Sun, 14 Sep 2014 08:13:45 GMT</pubDate></item><item><title><![CDATA[Reply to farbige Ausgabe on Mon, 15 Sep 2014 13:03:40 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/u18363" rel="nofollow">Jochen Kalmbach</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/f58" rel="nofollow">C++/CLI mit .NET</a> in das Forum <a href="http://www.c-plusplus.net/forum/f15" rel="nofollow">C++ (alle ISO-Standards)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/39405" 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/2417595</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2417595</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 15 Sep 2014 13:03:40 GMT</pubDate></item><item><title><![CDATA[Reply to farbige Ausgabe on Mon, 15 Sep 2014 15:10:09 GMT]]></title><description><![CDATA[<p>Hier bist Du aber auch falsch. Das hat nix mit Standard C++ zu tun. Vielleicht hilft Dir aber das:</p>
<p><a href="http://en.wikipedia.org/wiki/ANSI_escape_code" rel="nofollow">http://en.wikipedia.org/wiki/ANSI_escape_code</a></p>
<p>ich glaube die Konsole bei MAC OS X emuliert ein ANSI-Terminal</p>
<p>mfg Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2417610</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2417610</guid><dc:creator><![CDATA[mgaeckler]]></dc:creator><pubDate>Mon, 15 Sep 2014 15:10:09 GMT</pubDate></item></channel></rss>