<?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[Unknow escape sequence  ?]]></title><description><![CDATA[<p>Compiler : g++<br />
Fehlermeldung :</p>
<pre><code>g++ test.cpp -o taschenrechner
test.cpp: In function »int main()«:
test.cpp:15: Fehler: unknown escape sequence: '\305'
test.cpp:16: Fehler: unknown escape sequence: '\305'
test.cpp:17: Fehler: unknown escape sequence: '\305'
test.cpp:18: Fehler: unknown escape sequence: '\305'
test.cpp:19: Fehler: unknown escape sequence: '\305'
test.cpp:20: Fehler: unknown escape sequence: '\305'
test.cpp:27: Fehler: unknown escape sequence: '\305'
test.cpp:28: Fehler: no match für »operator&lt;&lt;« in »std::cin &lt;&lt; auswahl«
test.cpp:34: Fehler: no match für »operator&lt;&lt;« in »std::cin &lt;&lt; zahl[0]«
test.cpp:43: Fehler: no match für »operator&lt;&lt;« in »std::cin &lt;&lt; zahl[0]«
</code></pre>
<p>Programm :</p>
<pre><code>#include &lt;iostream&gt;
using namespace std;

int summe(int a , int b , int c = 0 , int d = 0 ,int e = 0 ,int f = 0 ,int g = 0,int h = 0,int i= 0 ,int j=0)
     {
     return(a+b+c+d+e+f+g+h+i+j);
     }

int main()
    {
    int auswahl = 0;    
    int  zahl[10];

    cout &lt;&lt; &quot; \ŧ\n Taschenrechner &quot; 
         &lt;&lt; &quot; \ŧ\n  Addieren        &lt;1&gt; &quot; 
         &lt;&lt; &quot; \ŧ\n  Subtrahieren    &lt;2&gt; &quot;
         &lt;&lt; &quot; \ŧ\n  Multiplizieren  &lt;3&gt; &quot;
         &lt;&lt; &quot; \ŧ\n  Dividieren      &lt;4&gt; &quot; 
         &lt;&lt; &quot; \ŧ\n  Auswahl : &quot; ; 
    cin  &gt;&gt; auswahl;

    switch(auswahl)
          {
          int auswahl;
          case 1 : cout &lt;&lt; &quot;\t\n Addieren &quot; 
                        &lt;&lt; &quot;\ŧ\n  Wieviele Zahlen sollen addiert werden (2 bis 10): &quot;;
                   cin  &lt;&lt; auswahl;
                   if (auswahl &gt;= 2 &amp;&amp; auswahl &lt;= 10)
                      {
                      if(auswahl == 2)
                         {
                         cout &lt;&lt; &quot; Zahl 1   : &quot;;
                         cin  &lt;&lt; zahl[0];
                         cout &lt;&lt; &quot; Zahl 2   : &quot;;
                         cin  &gt;&gt; zahl[1];
                         cout &lt;&lt; &quot;         + ____________________ &quot; &lt;&lt; endl;
                         cout &lt;&lt; &quot; ergebnis : &quot; &lt;&lt; summe(zahl[0] , zahl[1]) &lt;&lt; endl;
                         }//ende von if auswahl = 2
                     if(auswahl ==10)
                         {
                         cout &lt;&lt; &quot; Zahl 1   : &quot;;
                         cin  &lt;&lt; zahl[0];
                         cout &lt;&lt; &quot; Zahl 2   : &quot;;
                         cin  &gt;&gt; zahl[2];
                         cout &lt;&lt; &quot; Zahl 3   : &quot;;
                         cin  &gt;&gt; zahl[3];
                         cout &lt;&lt; &quot; Zahl 4   : &quot;;
                         cin  &gt;&gt; zahl[4];
                         cout &lt;&lt; &quot; Zahl 5   : &quot;;
                         cin  &gt;&gt; zahl[5];
                         cout &lt;&lt; &quot; Zahl 6   :&quot; ;
                         cin  &gt;&gt; zahl[6];
                         cout &lt;&lt; &quot; Zahl 7   :&quot; ;
                         cin  &gt;&gt; zahl[7];
                         cout &lt;&lt; &quot; Zahl 8   : &quot;;
                         cin  &gt;&gt; zahl[8];
                         cout &lt;&lt; &quot; Zahl 9   : &quot;;
                         cin  &gt;&gt; zahl[9];
                         cout &lt;&lt; &quot; Zahl 10  : &quot;;
                         cin  &gt;&gt; zahl[10];
                         cout &lt;&lt; &quot;         + ____________________ &quot; &lt;&lt; endl;
                         cout &lt;&lt; &quot; ergebnis : &quot; &lt;&lt; summe(zahl[0] , zahl[2] , zahl [3] , zahl[4], zahl[5], zahl[6], zahl[7], zahl[8], zahl[9], zahl[10]) &lt;&lt; endl;
                         }//ende von if auswahl = 3

                      }//ende von if
                      break;    

         }//ende von switch

    }//end von main
</code></pre>
<p>kann mir da jemand helfen ?<br />
gruß c4pone</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/192454/unknow-escape-sequence</link><generator>RSS for Node</generator><lastBuildDate>Sun, 27 Sep 2026 11:22:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/192454.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Sep 2007 16:31:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unknow escape sequence  ? on Fri, 14 Sep 2007 16:31:55 GMT]]></title><description><![CDATA[<p>Compiler : g++<br />
Fehlermeldung :</p>
<pre><code>g++ test.cpp -o taschenrechner
test.cpp: In function »int main()«:
test.cpp:15: Fehler: unknown escape sequence: '\305'
test.cpp:16: Fehler: unknown escape sequence: '\305'
test.cpp:17: Fehler: unknown escape sequence: '\305'
test.cpp:18: Fehler: unknown escape sequence: '\305'
test.cpp:19: Fehler: unknown escape sequence: '\305'
test.cpp:20: Fehler: unknown escape sequence: '\305'
test.cpp:27: Fehler: unknown escape sequence: '\305'
test.cpp:28: Fehler: no match für »operator&lt;&lt;« in »std::cin &lt;&lt; auswahl«
test.cpp:34: Fehler: no match für »operator&lt;&lt;« in »std::cin &lt;&lt; zahl[0]«
test.cpp:43: Fehler: no match für »operator&lt;&lt;« in »std::cin &lt;&lt; zahl[0]«
</code></pre>
<p>Programm :</p>
<pre><code>#include &lt;iostream&gt;
using namespace std;

int summe(int a , int b , int c = 0 , int d = 0 ,int e = 0 ,int f = 0 ,int g = 0,int h = 0,int i= 0 ,int j=0)
     {
     return(a+b+c+d+e+f+g+h+i+j);
     }

int main()
    {
    int auswahl = 0;    
    int  zahl[10];

    cout &lt;&lt; &quot; \ŧ\n Taschenrechner &quot; 
         &lt;&lt; &quot; \ŧ\n  Addieren        &lt;1&gt; &quot; 
         &lt;&lt; &quot; \ŧ\n  Subtrahieren    &lt;2&gt; &quot;
         &lt;&lt; &quot; \ŧ\n  Multiplizieren  &lt;3&gt; &quot;
         &lt;&lt; &quot; \ŧ\n  Dividieren      &lt;4&gt; &quot; 
         &lt;&lt; &quot; \ŧ\n  Auswahl : &quot; ; 
    cin  &gt;&gt; auswahl;

    switch(auswahl)
          {
          int auswahl;
          case 1 : cout &lt;&lt; &quot;\t\n Addieren &quot; 
                        &lt;&lt; &quot;\ŧ\n  Wieviele Zahlen sollen addiert werden (2 bis 10): &quot;;
                   cin  &lt;&lt; auswahl;
                   if (auswahl &gt;= 2 &amp;&amp; auswahl &lt;= 10)
                      {
                      if(auswahl == 2)
                         {
                         cout &lt;&lt; &quot; Zahl 1   : &quot;;
                         cin  &lt;&lt; zahl[0];
                         cout &lt;&lt; &quot; Zahl 2   : &quot;;
                         cin  &gt;&gt; zahl[1];
                         cout &lt;&lt; &quot;         + ____________________ &quot; &lt;&lt; endl;
                         cout &lt;&lt; &quot; ergebnis : &quot; &lt;&lt; summe(zahl[0] , zahl[1]) &lt;&lt; endl;
                         }//ende von if auswahl = 2
                     if(auswahl ==10)
                         {
                         cout &lt;&lt; &quot; Zahl 1   : &quot;;
                         cin  &lt;&lt; zahl[0];
                         cout &lt;&lt; &quot; Zahl 2   : &quot;;
                         cin  &gt;&gt; zahl[2];
                         cout &lt;&lt; &quot; Zahl 3   : &quot;;
                         cin  &gt;&gt; zahl[3];
                         cout &lt;&lt; &quot; Zahl 4   : &quot;;
                         cin  &gt;&gt; zahl[4];
                         cout &lt;&lt; &quot; Zahl 5   : &quot;;
                         cin  &gt;&gt; zahl[5];
                         cout &lt;&lt; &quot; Zahl 6   :&quot; ;
                         cin  &gt;&gt; zahl[6];
                         cout &lt;&lt; &quot; Zahl 7   :&quot; ;
                         cin  &gt;&gt; zahl[7];
                         cout &lt;&lt; &quot; Zahl 8   : &quot;;
                         cin  &gt;&gt; zahl[8];
                         cout &lt;&lt; &quot; Zahl 9   : &quot;;
                         cin  &gt;&gt; zahl[9];
                         cout &lt;&lt; &quot; Zahl 10  : &quot;;
                         cin  &gt;&gt; zahl[10];
                         cout &lt;&lt; &quot;         + ____________________ &quot; &lt;&lt; endl;
                         cout &lt;&lt; &quot; ergebnis : &quot; &lt;&lt; summe(zahl[0] , zahl[2] , zahl [3] , zahl[4], zahl[5], zahl[6], zahl[7], zahl[8], zahl[9], zahl[10]) &lt;&lt; endl;
                         }//ende von if auswahl = 3

                      }//ende von if
                      break;    

         }//ende von switch

    }//end von main
</code></pre>
<p>kann mir da jemand helfen ?<br />
gruß c4pone</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365391</guid><dc:creator><![CDATA[c4pone]]></dc:creator><pubDate>Fri, 14 Sep 2007 16:31:55 GMT</pubDate></item><item><title><![CDATA[Reply to Unknow escape sequence  ? on Fri, 14 Sep 2007 16:35:57 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">&quot;\&amp;#359...&quot;
</code></pre>
<p>Wahrscheinlich weiss der Compiler ebensowenig wie ich was das sein soll. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365395</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365395</guid><dc:creator><![CDATA[Redhead]]></dc:creator><pubDate>Fri, 14 Sep 2007 16:35:57 GMT</pubDate></item><item><title><![CDATA[Reply to Unknow escape sequence  ? on Fri, 14 Sep 2007 16:40:07 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Und die andern Fehlermeldung beziehen sich auf das hier</p>
<pre><code class="language-cpp">cin  &lt;&lt; zahl[0];
</code></pre>
<p>Btw. ist das übrigens nicht gut gelöst. benutzt eine Schleife um das Array aufzuaddieren, nicht so eine Funktion. Genauso wie für die Eingabe.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365399</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365399</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 14 Sep 2007 16:40:07 GMT</pubDate></item><item><title><![CDATA[Reply to Unknow escape sequence  ? on Fri, 14 Sep 2007 16:50:42 GMT]]></title><description><![CDATA[<p>wenn ich es kompilieren will steht anstadt \&amp;#359...&quot; vorher \ŧ\n</p>
<p>wie meinste das akari kannste ma nen beispiel machen ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365410</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365410</guid><dc:creator><![CDATA[c4pone]]></dc:creator><pubDate>Fri, 14 Sep 2007 16:50:42 GMT</pubDate></item><item><title><![CDATA[Reply to Unknow escape sequence  ? on Fri, 14 Sep 2007 17:04:36 GMT]]></title><description><![CDATA[<pre><code>int zahl[10];
     for(int loop = 0; loop &lt; 10; ++loop)
         {
         cout &lt;&lt; &quot; Zahl &quot; &lt;&lt; loop &lt;&lt; &quot;  :&quot;;
         cin  &gt;&gt; zahl[loop];
         }
</code></pre>
<p>aber wie soll das mit dem aufaddieren gehen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365415</guid><dc:creator><![CDATA[c4pone]]></dc:creator><pubDate>Fri, 14 Sep 2007 17:04:36 GMT</pubDate></item><item><title><![CDATA[Reply to Unknow escape sequence  ? on Fri, 14 Sep 2007 17:21:35 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>c4pone schrieb:</p>
<blockquote>
<p>wenn ich es kompilieren will steht anstadt \&amp;#359...&quot; vorher \ŧ\n</p>
</blockquote>
<p>Las <strong>\&amp;#359</strong> (oder was auch immer da stand) doch einfach weg... was soll das denn da?<br />
Wenn du einen Zeilenumbruch machen willst dann schrieb einfach</p>
<pre><code class="language-cpp">cout &lt;&lt; endl &lt;&lt; &quot;Text&quot;;
</code></pre>
<blockquote>
<p>wie meinste das akari kannste ma nen beispiel machen ^^</p>
</blockquote>
<p>Am besten gleich so das auch &quot;auswahl&quot; zum Zuge kommt</p>
<pre><code class="language-cpp">cin &gt;&gt; auswahl;
if (auswahl &lt; 2 || auswahl &gt; 10)
{
  // Abbrechen!
}
for(int loop = 0; loop &lt; auswahl; ++loop)
{
  cout &lt;&lt; &quot; Zahl &quot; &lt;&lt; loop &lt;&lt; &quot;  :&quot;;
  cin  &gt;&gt; zahl[loop];
}
int sum = 0;
for(int loop = 0; loop &lt; auswahl; ++loop)
{
  sum += zahl[loop];
}
cout &lt;&lt; &quot;Summe : &quot; &lt;&lt; summe &lt;&lt; endl;
</code></pre>
<p>/Edit : Und bitte nimm beim nächsten Posen für C++ Code auch die C++ Tags, nicht die Code-Tags! Dann bekommst du auch das sehr hilfreiche Syntaxhighlightning.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365438</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 14 Sep 2007 17:21:35 GMT</pubDate></item><item><title><![CDATA[Reply to Unknow escape sequence  ? on Fri, 14 Sep 2007 17:20:38 GMT]]></title><description><![CDATA[<p>*zitiert statt editiert...*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365440</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365440</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 14 Sep 2007 17:20:38 GMT</pubDate></item><item><title><![CDATA[Reply to Unknow escape sequence  ? on Fri, 14 Sep 2007 17:25:03 GMT]]></title><description><![CDATA[<p>ah dank dir ^^</p>
<blockquote>
<p>Las \&amp;#359 doch einfach weg... was soll das denn da?<br />
Wenn du einen Zeilenumbruch machen willst dann schrieb einfach</p>
</blockquote>
<p>Vorher steht in meinem quelltext garnicht dieses komische \&amp;#359 erst wenn ich den quelltext kompilieren will und der error des compilers kommt und ich DANN nochma in den quelltext schauhe sind anstadt der \n \ŧ dieses \&amp;#359</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365444</guid><dc:creator><![CDATA[c4pone]]></dc:creator><pubDate>Fri, 14 Sep 2007 17:25:03 GMT</pubDate></item><item><title><![CDATA[Reply to Unknow escape sequence  ? on Fri, 14 Sep 2007 17:28:29 GMT]]></title><description><![CDATA[<p>MAN!!!</p>
<p>SCHREIB NUR \n und VERGISS DEN GANZEN REST!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365446</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365446</guid><dc:creator><![CDATA[asdasd]]></dc:creator><pubDate>Fri, 14 Sep 2007 17:28:29 GMT</pubDate></item><item><title><![CDATA[Reply to Unknow escape sequence  ? on Sat, 15 Sep 2007 10:40:06 GMT]]></title><description><![CDATA[<p>es geht immer noch nicht wenn ich das kompilieren will kommt summe überschreitet nen gültigkeitsbereich</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1365770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365770</guid><dc:creator><![CDATA[c4pone]]></dc:creator><pubDate>Sat, 15 Sep 2007 10:40:06 GMT</pubDate></item><item><title><![CDATA[Reply to Unknow escape sequence  ? on Sat, 15 Sep 2007 11:09:11 GMT]]></title><description><![CDATA[<p>Uh, das mit der Schleife zum summieren ist keine tolle Idee.</p>
<pre><code class="language-cpp">#include &lt;numeric&gt;

int summe( int* first, int* last )
{
  return std::accumulate(first, last, 0);
}

// cout &lt;&lt; &quot; ergebnis : &quot; &lt;&lt; summe(zahl, zahl+10) &lt;&lt; endl;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1365800</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1365800</guid><dc:creator><![CDATA[finix]]></dc:creator><pubDate>Sat, 15 Sep 2007 11:09:11 GMT</pubDate></item></channel></rss>