<?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[(ANSI C) nichtdeklarierter Bezeichner]]></title><description><![CDATA[<p>Das ist mein Compile-Log:</p>
<p>--------------------Konfiguration: 1.2Hello World - Win32 Debug--------------------<br />
Kompilierung läuft...<br />
die ersten Variablen.cpp<br />
C:\Programme\Grafikprogramme\Visual C++\MSDev98\MyProjects\Hello World\die ersten Variablen.cpp(11) : error C2065: 'printf' : nichtdeklarierter Bezeichner<br />
C:\Programme\Grafikprogramme\Visual C++\MSDev98\MyProjects\Hello World\die ersten Variablen.cpp(15) : warning C4508: 'main' : Funktion sollte einen Wert zurueckgeben; Ergebnistyp 'void' angenommen<br />
Fehler beim Ausführen von cl.exe.</p>
<p>die ersten Variablen.obj - 1 Fehler, 1 Warnung(en)<br />
Ich hab das zugehörige Programm meiner Meinung nach jedoch ordnungsgemäß geschrieben:</p>
<p>// test_types.c<br />
//representation of primitive C datatypes</p>
<p>char a_char='\0';<br />
int an_int=0;<br />
short a_short=0;<br />
long a_long=0;</p>
<p>main()<br />
{<br />
printf(&quot;Size of char: %d Byte(s)\n&quot;,sizeof(a_char));<br />
printf(&quot;Size of int: %d Byte(s)\n&quot;,sizeof(an_int));<br />
printf(&quot;Size of short: %d Byte(s)\n&quot;,sizeof(a_short));<br />
printf(&quot;Size of long: %d Byte(s)\n&quot;,sizeof(a_long));<br />
}<br />
Ich hoffe ihr könnt mir helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/5832/ansi-c-nichtdeklarierter-bezeichner</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 03:18:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/5832.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 May 2003 17:16:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to (ANSI C) nichtdeklarierter Bezeichner on Tue, 20 May 2003 17:16:00 GMT]]></title><description><![CDATA[<p>Das ist mein Compile-Log:</p>
<p>--------------------Konfiguration: 1.2Hello World - Win32 Debug--------------------<br />
Kompilierung läuft...<br />
die ersten Variablen.cpp<br />
C:\Programme\Grafikprogramme\Visual C++\MSDev98\MyProjects\Hello World\die ersten Variablen.cpp(11) : error C2065: 'printf' : nichtdeklarierter Bezeichner<br />
C:\Programme\Grafikprogramme\Visual C++\MSDev98\MyProjects\Hello World\die ersten Variablen.cpp(15) : warning C4508: 'main' : Funktion sollte einen Wert zurueckgeben; Ergebnistyp 'void' angenommen<br />
Fehler beim Ausführen von cl.exe.</p>
<p>die ersten Variablen.obj - 1 Fehler, 1 Warnung(en)<br />
Ich hab das zugehörige Programm meiner Meinung nach jedoch ordnungsgemäß geschrieben:</p>
<p>// test_types.c<br />
//representation of primitive C datatypes</p>
<p>char a_char='\0';<br />
int an_int=0;<br />
short a_short=0;<br />
long a_long=0;</p>
<p>main()<br />
{<br />
printf(&quot;Size of char: %d Byte(s)\n&quot;,sizeof(a_char));<br />
printf(&quot;Size of int: %d Byte(s)\n&quot;,sizeof(an_int));<br />
printf(&quot;Size of short: %d Byte(s)\n&quot;,sizeof(a_short));<br />
printf(&quot;Size of long: %d Byte(s)\n&quot;,sizeof(a_long));<br />
}<br />
Ich hoffe ihr könnt mir helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/28322</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/28322</guid><dc:creator><![CDATA[Nightwolf]]></dc:creator><pubDate>Tue, 20 May 2003 17:16:00 GMT</pubDate></item><item><title><![CDATA[Reply to (ANSI C) nichtdeklarierter Bezeichner on Tue, 20 May 2003 17:18:00 GMT]]></title><description><![CDATA[<p>header für printf einbinden und die warnung beachten, was du programmierst dürfte noch C nach K&amp;R-Art sein ...<br />
Verschoben!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/28323</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/28323</guid><dc:creator><![CDATA[dEUs]]></dc:creator><pubDate>Tue, 20 May 2003 17:18:00 GMT</pubDate></item></channel></rss>