<?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[Fehlermeldung: character constant too long for its type]]></title><description><![CDATA[<p>Sorry dass ich hier ständig rumfrage, aber ich möchte überprüfen, ob die Eingabe eine Zahl von 1-4 ist. Wenn ja, soll das Programm fortfahren, wenn nicht, soll eine Ausgabe erscheinen „Sie haben sich vertippt“ und der Benutzer solange eingeben können, bis die Zahl im Bereich von 1-4 liegt.</p>
<p>Nun mein Problem: Der Compiler sagt „character constant too long for its type“:</p>
<pre><code class="language-cpp">int main(int argc, char *argv[])
{

const char* Europa [400]= {&quot;Land1&quot;, &quot;Land2&quot;, &quot;Land3&quot;, &quot;usw.&quot;, 

};

looping = true; while( looping )  
{ std::cout &lt;&lt; &quot;Bitte geben Sie die Sprache ein \n&quot;;  
  std::cin &gt;&gt; sprache;  
  if( sprache==1|2|3|4)looping = false; else 
  { std::cout &lt;&lt; &quot;Fehler: Sie haben sich vertippt!\n&quot;; }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/314212/fehlermeldung-character-constant-too-long-for-its-type</link><generator>RSS for Node</generator><lastBuildDate>Sat, 01 Aug 2026 12:44:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/314212.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Feb 2013 21:25:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehlermeldung: character constant too long for its type on Sat, 23 Feb 2013 21:25:57 GMT]]></title><description><![CDATA[<p>Sorry dass ich hier ständig rumfrage, aber ich möchte überprüfen, ob die Eingabe eine Zahl von 1-4 ist. Wenn ja, soll das Programm fortfahren, wenn nicht, soll eine Ausgabe erscheinen „Sie haben sich vertippt“ und der Benutzer solange eingeben können, bis die Zahl im Bereich von 1-4 liegt.</p>
<p>Nun mein Problem: Der Compiler sagt „character constant too long for its type“:</p>
<pre><code class="language-cpp">int main(int argc, char *argv[])
{

const char* Europa [400]= {&quot;Land1&quot;, &quot;Land2&quot;, &quot;Land3&quot;, &quot;usw.&quot;, 

};

looping = true; while( looping )  
{ std::cout &lt;&lt; &quot;Bitte geben Sie die Sprache ein \n&quot;;  
  std::cin &gt;&gt; sprache;  
  if( sprache==1|2|3|4)looping = false; else 
  { std::cout &lt;&lt; &quot;Fehler: Sie haben sich vertippt!\n&quot;; }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2301475</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2301475</guid><dc:creator><![CDATA[wisnia]]></dc:creator><pubDate>Sat, 23 Feb 2013 21:25:57 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung: character constant too long for its type on Sat, 23 Feb 2013 21:42:42 GMT]]></title><description><![CDATA[<p>Geschlossen wegen Nutzlosigkeit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2301477</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2301477</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sat, 23 Feb 2013 21:42:42 GMT</pubDate></item></channel></rss>