<?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[Wo ist der Fehler ? C++]]></title><description><![CDATA[<p>Hey,</p>
<p>ich bin ein Anfänger und habe ein kleines Programm geschrieben, das anhand der Punkte zweier Kämpfe die Gesamtpunktzahl, Erfahrungspunkte und das Level berechnen und wiedergeben soll.</p>
<p>Sieht so aus:</p>
<pre><code>#include &lt;iostream&gt;
using namespace std;

int main()
{
	int tmp;
	int Kampf1;
	int Kampf2;
	int Gesamtpunktzahl;
	int Erfahrungspunkte;
	int Level;

	cout &lt;&lt; &quot;Gebe die Punktzahl des ersten Kampfes ein &quot; &lt;&lt; endl;
	cin &gt;&gt; Kampf1; 

	cout &lt;&lt; &quot;Gebe die Punktzahl des zweiten Kampfes ein. &quot; &lt;&lt; endl;
	cin &gt;&gt; Kampf2;

	Gesamtpunktzahl = Kampf1 + Kampf2;
	Erfahrungspunkte = Kampf1 * Kampf2;
	Level = Gesamtpunktzahl - Kampf1;

	cout &lt;&lt; &quot;Du hast &quot; &lt;&lt; Gesamtpunktzahl &lt;&lt; &quot; Gesamtpunkte.&quot; &lt;&lt; endl;
        cout &lt;&lt; &quot;Du hast &quot; &lt;&lt; Erfahrungspunkte &lt;&lt; &quot; Erfahrungspunkte.&quot; &lt;&lt; endl;
        cout &lt;&lt; &quot;Du bist Level &quot; &lt;&lt; Level &lt;&lt; endl;

	cin &gt;&gt; tmp;
	return 0;
}
</code></pre>
<p>Ich hab keine Ahnung, wo der Fehler liegt. Könnt ihr mir irgendwie helfen ? Das passiert, wenn ich es Debugge.</p>
<p><a href="http://puu.sh/aBslP/1d652932dd.png" rel="nofollow">http://puu.sh/aBslP/1d652932dd.png</a></p>
<p>MfG.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/327288/wo-ist-der-fehler-c</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Jul 2026 10:45:25 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/327288.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 02 Aug 2014 12:12:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wo ist der Fehler ? C++ on Sat, 02 Aug 2014 12:13:24 GMT]]></title><description><![CDATA[<p>Hey,</p>
<p>ich bin ein Anfänger und habe ein kleines Programm geschrieben, das anhand der Punkte zweier Kämpfe die Gesamtpunktzahl, Erfahrungspunkte und das Level berechnen und wiedergeben soll.</p>
<p>Sieht so aus:</p>
<pre><code>#include &lt;iostream&gt;
using namespace std;

int main()
{
	int tmp;
	int Kampf1;
	int Kampf2;
	int Gesamtpunktzahl;
	int Erfahrungspunkte;
	int Level;

	cout &lt;&lt; &quot;Gebe die Punktzahl des ersten Kampfes ein &quot; &lt;&lt; endl;
	cin &gt;&gt; Kampf1; 

	cout &lt;&lt; &quot;Gebe die Punktzahl des zweiten Kampfes ein. &quot; &lt;&lt; endl;
	cin &gt;&gt; Kampf2;

	Gesamtpunktzahl = Kampf1 + Kampf2;
	Erfahrungspunkte = Kampf1 * Kampf2;
	Level = Gesamtpunktzahl - Kampf1;

	cout &lt;&lt; &quot;Du hast &quot; &lt;&lt; Gesamtpunktzahl &lt;&lt; &quot; Gesamtpunkte.&quot; &lt;&lt; endl;
        cout &lt;&lt; &quot;Du hast &quot; &lt;&lt; Erfahrungspunkte &lt;&lt; &quot; Erfahrungspunkte.&quot; &lt;&lt; endl;
        cout &lt;&lt; &quot;Du bist Level &quot; &lt;&lt; Level &lt;&lt; endl;

	cin &gt;&gt; tmp;
	return 0;
}
</code></pre>
<p>Ich hab keine Ahnung, wo der Fehler liegt. Könnt ihr mir irgendwie helfen ? Das passiert, wenn ich es Debugge.</p>
<p><a href="http://puu.sh/aBslP/1d652932dd.png" rel="nofollow">http://puu.sh/aBslP/1d652932dd.png</a></p>
<p>MfG.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2411614</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2411614</guid><dc:creator><![CDATA[Veardy]]></dc:creator><pubDate>Sat, 02 Aug 2014 12:13:24 GMT</pubDate></item><item><title><![CDATA[Reply to Wo ist der Fehler ? C++ on Sat, 02 Aug 2014 12:19:07 GMT]]></title><description><![CDATA[<p>Lege das Projekt nochmal an, aber diesmal geh sicher, daß Du eine Win32-Konsoleanwendung erstellst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2411616</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2411616</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sat, 02 Aug 2014 12:19:07 GMT</pubDate></item><item><title><![CDATA[Reply to Wo ist der Fehler ? C++ on Sat, 02 Aug 2014 13:41:25 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>Lege das Projekt nochmal an, aber diesmal geh sicher, daß Du eine Win32-Konsoleanwendung erstellst.</p>
</blockquote>
<p>Danke. Das hat jetzt geklappt. Wie bist du darauf gekommen ? Daran habe ich nicht einmal ansatzweise gedacht.</p>
<p>MfG.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2411623</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2411623</guid><dc:creator><![CDATA[Veardy]]></dc:creator><pubDate>Sat, 02 Aug 2014 13:41:25 GMT</pubDate></item><item><title><![CDATA[Reply to Wo ist der Fehler ? C++ on Sat, 02 Aug 2014 13:44:32 GMT]]></title><description><![CDATA[<p>weil nach der WinMain() gesucht wird als einstiegspunkt, eine Konsolenanwendung startet allerdings mit einer main().</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2411624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2411624</guid><dc:creator><![CDATA[tkausl]]></dc:creator><pubDate>Sat, 02 Aug 2014 13:44:32 GMT</pubDate></item><item><title><![CDATA[Reply to Wo ist der Fehler ? C++ on Sat, 02 Aug 2014 14:11:05 GMT]]></title><description><![CDATA[<p>tkausl schrieb:</p>
<blockquote>
<p>weil nach der WinMain() gesucht wird als einstiegspunkt, eine Konsolenanwendung startet allerdings mit einer main().</p>
</blockquote>
<p>Ok danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2411626</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2411626</guid><dc:creator><![CDATA[Veardy]]></dc:creator><pubDate>Sat, 02 Aug 2014 14:11:05 GMT</pubDate></item><item><title><![CDATA[Reply to Wo ist der Fehler ? C++ on Sat, 02 Aug 2014 15:10:54 GMT]]></title><description><![CDATA[<p>Veardy schrieb:</p>
<blockquote>
<p>volkard schrieb:</p>
<blockquote>
<p>Lege das Projekt nochmal an, aber diesmal geh sicher, daß Du eine Win32-Konsoleanwendung erstellst.</p>
</blockquote>
<p>Danke. Das hat jetzt geklappt. Wie bist du darauf gekommen ? Daran habe ich nicht einmal ansatzweise gedacht.</p>
</blockquote>
<p>Weil ich den gleichen Fehler schon tausend mal gemacht habe.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2411637</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2411637</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Sat, 02 Aug 2014 15:10:54 GMT</pubDate></item></channel></rss>