<?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[nichtdeklarierter Bezeichner bitte um Hilfe]]></title><description><![CDATA[<p>Hallihallo</p>
<p>bin ziemlich neu hier und programmier auch noch nicht sehr lange mit C/C++<br />
Ich hoffe die Frage ist nicht blöd aber per Suche hab ich nichts gefunden was mit weiterhilft.</p>
<p>Ich wollte die Switch Anweisung mal ausprobieren aber hänge jetzt irgendwie fest</p>
<p>Ich zeig euch einfach mal den Code, die Fehlermeldung ist:<br />
.\caseof.cpp(9) : error C2065: 'Zahl': nichtdeklarierter Bezeichner</p>
<p>#include &lt;iostream&gt;<br />
using namespace std;</p>
<p>int main ()<br />
{<br />
int konv;<br />
char zahl[1];</p>
<p>cin &gt;&gt; Zahl[0];</p>
<p>switch (Zahl[0])<br />
{<br />
case 0 : konv = 0 ;break;<br />
case 1 : konv = 1 ;break;<br />
case 2 : konv = 2 ;break;<br />
case 3 : konv = 3 ;break;<br />
case 4 : konv = 4 ;break;<br />
case 5 : konv = 5 ;break;<br />
case 6 : konv = 6 ;break;<br />
case 7 : konv = 7 ;break;<br />
case 8 : konv = 8 ;break;<br />
case 9 : konv = 9 ;break;<br />
case 'A' : konv = 10 ;break;<br />
case 'B' : konv = 11 ;break;<br />
case 'C' : konv = 12 ;break;<br />
case 'D' : konv = 13 ;break;<br />
case 'E' : konv = 14 ;break;<br />
case 'F' : konv = 15 ;break;<br />
case 'G' : konv = 16 ;break;<br />
case 'H' : konv = 17 ;break;<br />
case 'I' : konv = 18 ;break;<br />
case 'J' : konv = 19 ;break;<br />
};</p>
<p>cout &lt;&lt; konv;<br />
};</p>
<p>Ach und könnte mir jemand sagen ob ich dieses codeblocks benutzen sollte was hier einige erwähnt haben. Benutze im moment Visual C++ 2005</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/170344/nichtdeklarierter-bezeichner-bitte-um-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 00:57:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/170344.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 Jan 2007 17:34:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to nichtdeklarierter Bezeichner bitte um Hilfe on Sun, 14 Jan 2007 17:34:53 GMT]]></title><description><![CDATA[<p>Hallihallo</p>
<p>bin ziemlich neu hier und programmier auch noch nicht sehr lange mit C/C++<br />
Ich hoffe die Frage ist nicht blöd aber per Suche hab ich nichts gefunden was mit weiterhilft.</p>
<p>Ich wollte die Switch Anweisung mal ausprobieren aber hänge jetzt irgendwie fest</p>
<p>Ich zeig euch einfach mal den Code, die Fehlermeldung ist:<br />
.\caseof.cpp(9) : error C2065: 'Zahl': nichtdeklarierter Bezeichner</p>
<p>#include &lt;iostream&gt;<br />
using namespace std;</p>
<p>int main ()<br />
{<br />
int konv;<br />
char zahl[1];</p>
<p>cin &gt;&gt; Zahl[0];</p>
<p>switch (Zahl[0])<br />
{<br />
case 0 : konv = 0 ;break;<br />
case 1 : konv = 1 ;break;<br />
case 2 : konv = 2 ;break;<br />
case 3 : konv = 3 ;break;<br />
case 4 : konv = 4 ;break;<br />
case 5 : konv = 5 ;break;<br />
case 6 : konv = 6 ;break;<br />
case 7 : konv = 7 ;break;<br />
case 8 : konv = 8 ;break;<br />
case 9 : konv = 9 ;break;<br />
case 'A' : konv = 10 ;break;<br />
case 'B' : konv = 11 ;break;<br />
case 'C' : konv = 12 ;break;<br />
case 'D' : konv = 13 ;break;<br />
case 'E' : konv = 14 ;break;<br />
case 'F' : konv = 15 ;break;<br />
case 'G' : konv = 16 ;break;<br />
case 'H' : konv = 17 ;break;<br />
case 'I' : konv = 18 ;break;<br />
case 'J' : konv = 19 ;break;<br />
};</p>
<p>cout &lt;&lt; konv;<br />
};</p>
<p>Ach und könnte mir jemand sagen ob ich dieses codeblocks benutzen sollte was hier einige erwähnt haben. Benutze im moment Visual C++ 2005</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1209821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1209821</guid><dc:creator><![CDATA[Slannö]]></dc:creator><pubDate>Sun, 14 Jan 2007 17:34:53 GMT</pubDate></item><item><title><![CDATA[Reply to nichtdeklarierter Bezeichner bitte um Hilfe on Sun, 14 Jan 2007 17:43:39 GMT]]></title><description><![CDATA[<p>Du daklarierst &quot;zahl&quot; (kleiner Anfangsbuchstabe) und liest &quot;Zahl&quot; (großer Anfangsbuchstabe) ein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1209829</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1209829</guid><dc:creator><![CDATA[Nanuq]]></dc:creator><pubDate>Sun, 14 Jan 2007 17:43:39 GMT</pubDate></item><item><title><![CDATA[Reply to nichtdeklarierter Bezeichner bitte um Hilfe on Sun, 14 Jan 2007 17:48:19 GMT]]></title><description><![CDATA[<p>Au weia bin ich dabbisch :p</p>
<p>Besten dank für die hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1209835</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1209835</guid><dc:creator><![CDATA[Slannö]]></dc:creator><pubDate>Sun, 14 Jan 2007 17:48:19 GMT</pubDate></item></channel></rss>