<?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[Anfängerfrage zu Borland C++BuilderX-Warnhinweis]]></title><description><![CDATA[<p>Hi,</p>
<p>ich bin gerade dabei, mir die Programmierung mit C/C++ beizubringen, und habe folgendes Problem:</p>
<p>Nach dem Build meiner Programme (unten kleines Beispiel) bekomme ich immer den Hinweis</p>
<p>&quot;Dateiname.c&quot;: W8070 Function should return a value in function main at line 37&quot;</p>
<p>('line 37' ist dabei die Codezeile mit der abschließenden geschweiften Klammer)</p>
<p>Nach Betätigung von F9 (&quot;Run Project&quot;) hängt sich die IDE nach Anzeige des Pfades zur *.exe-Datei 'auf'. Sie muss hinterher jedesmal manuell 'terminated' werden, ohne dass die vom Programm zu generierenden Konsolenanzeigen je angezeigt worden wären?!?</p>
<p>///////////////////////////////////////////////BEISPIEL/////////////////////////</p>
<p># include &lt;stdio.h&gt;<br />
# include &lt;stdlib.h&gt;</p>
<p>main()<br />
{<br />
int z, a, n, x;</p>
<p>printf(&quot;Zu teilende Zahl/'Zaehler': &quot;);<br />
scanf(&quot;%d&quot;, &amp;z);<br />
printf(&quot;Teiler: &quot;);<br />
scanf(&quot;%d&quot;, &amp;n);<br />
printf(&quot;Anzahl Nachkommastellen: &quot;);<br />
scanf(&quot;%d&quot;, &amp;a);</p>
<p>x = z/n; //Division OHNE Nachkommastellen</p>
<p>printf(&quot;Ergebnis der Division: %d.&quot;, x);</p>
<p>for( ; a &gt; 0; a = a-1)<br />
{<br />
z = 10*(z-n*x);</p>
<p>if(z==0)<br />
break;</p>
<p>x = z/n;</p>
<p>printf(&quot;%d&quot;, x);<br />
}</p>
<p>printf(&quot;\n&quot;);<br />
}</p>
<p>////////////////////////////////////////////////////////////////////////////////</p>
<p>Unter anderen IDE's - z.B. Bloodshed's Dev C++ - laufen die Programme dagegen problemlos?!?</p>
<p>Besten Dank im voraus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/88437/anfängerfrage-zu-borland-c-builderx-warnhinweis</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 01:36:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/88437.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Oct 2004 17:49:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anfängerfrage zu Borland C++BuilderX-Warnhinweis on Sat, 09 Oct 2004 17:49:36 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>ich bin gerade dabei, mir die Programmierung mit C/C++ beizubringen, und habe folgendes Problem:</p>
<p>Nach dem Build meiner Programme (unten kleines Beispiel) bekomme ich immer den Hinweis</p>
<p>&quot;Dateiname.c&quot;: W8070 Function should return a value in function main at line 37&quot;</p>
<p>('line 37' ist dabei die Codezeile mit der abschließenden geschweiften Klammer)</p>
<p>Nach Betätigung von F9 (&quot;Run Project&quot;) hängt sich die IDE nach Anzeige des Pfades zur *.exe-Datei 'auf'. Sie muss hinterher jedesmal manuell 'terminated' werden, ohne dass die vom Programm zu generierenden Konsolenanzeigen je angezeigt worden wären?!?</p>
<p>///////////////////////////////////////////////BEISPIEL/////////////////////////</p>
<p># include &lt;stdio.h&gt;<br />
# include &lt;stdlib.h&gt;</p>
<p>main()<br />
{<br />
int z, a, n, x;</p>
<p>printf(&quot;Zu teilende Zahl/'Zaehler': &quot;);<br />
scanf(&quot;%d&quot;, &amp;z);<br />
printf(&quot;Teiler: &quot;);<br />
scanf(&quot;%d&quot;, &amp;n);<br />
printf(&quot;Anzahl Nachkommastellen: &quot;);<br />
scanf(&quot;%d&quot;, &amp;a);</p>
<p>x = z/n; //Division OHNE Nachkommastellen</p>
<p>printf(&quot;Ergebnis der Division: %d.&quot;, x);</p>
<p>for( ; a &gt; 0; a = a-1)<br />
{<br />
z = 10*(z-n*x);</p>
<p>if(z==0)<br />
break;</p>
<p>x = z/n;</p>
<p>printf(&quot;%d&quot;, x);<br />
}</p>
<p>printf(&quot;\n&quot;);<br />
}</p>
<p>////////////////////////////////////////////////////////////////////////////////</p>
<p>Unter anderen IDE's - z.B. Bloodshed's Dev C++ - laufen die Programme dagegen problemlos?!?</p>
<p>Besten Dank im voraus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/624994</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/624994</guid><dc:creator><![CDATA[snoopydoo]]></dc:creator><pubDate>Sat, 09 Oct 2004 17:49:36 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage zu Borland C++BuilderX-Warnhinweis on Sat, 09 Oct 2004 18:10:03 GMT]]></title><description><![CDATA[<p>Als aller erstes mal heißt es glaub &quot;int main()&quot;<br />
und dann muss am ende ein &quot;return 0;&quot; oder so da stehen ...</p>
<p>Bin selbst nicht so der Pro und das was ich sag ist bestimmt nur bedingt richtig <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/625004</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625004</guid><dc:creator><![CDATA[Mortal2006]]></dc:creator><pubDate>Sat, 09 Oct 2004 18:10:03 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage zu Borland C++BuilderX-Warnhinweis on Sat, 09 Oct 2004 18:29:39 GMT]]></title><description><![CDATA[<p>Vielen Dank für die schnelle Antwort, aber daran liegt es leider nicht (hatte ich vorher schon versucht)!</p>
<p>Unter Bloodshed's Dev-C++ läuft's auch genau so wie obern dargestellt...!?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625022</guid><dc:creator><![CDATA[snoopydoo]]></dc:creator><pubDate>Sat, 09 Oct 2004 18:29:39 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage zu Borland C++BuilderX-Warnhinweis on Sat, 09 Oct 2004 18:45:33 GMT]]></title><description><![CDATA[<p>Hast du das mal debugged? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<p>Du solltest Dir mal die Variablen schrittweise anschauen!!!<br />
besonders a - die Laufvariable!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625038</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625038</guid><dc:creator><![CDATA[DerAltenburger]]></dc:creator><pubDate>Sat, 09 Oct 2004 18:45:33 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage zu Borland C++BuilderX-Warnhinweis on Sat, 09 Oct 2004 19:05:34 GMT]]></title><description><![CDATA[<p>... die finde ich i.O. Wäre das nicht so, müsste ich doch auch unter anderen IDE's Warnhinweise bekommen, oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625052</guid><dc:creator><![CDATA[snoopydoo]]></dc:creator><pubDate>Sat, 09 Oct 2004 19:05:34 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage zu Borland C++BuilderX-Warnhinweis on Sat, 09 Oct 2004 19:09:30 GMT]]></title><description><![CDATA[<p>Ich HABE debugged. Im debug-Mode läuft das Programm über die Konsole und nicht wie bei 'Run Project' über das Message-Fenster am unteren Bildrand des C++BuilderX. Über die Konsole läuft alles einwandfrei!?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625053</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625053</guid><dc:creator><![CDATA[snoopydoo]]></dc:creator><pubDate>Sat, 09 Oct 2004 19:09:30 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage zu Borland C++BuilderX-Warnhinweis on Sun, 10 Oct 2004 18:18:59 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic.php?t=88436" rel="nofollow">Hier</a> geht's weiter.<br />
Bei (versehentlichen) Doppelpostings bitte möglichst selbst dafür sorgen, dass sich nicht zwei Threads entwickeln (Inhalt des einen Beitrages löschen o.ä). Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/625545</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/625545</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sun, 10 Oct 2004 18:18:59 GMT</pubDate></item></channel></rss>