<?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[fatal error C1075: Dateiende erreicht, bevor das zugehörige Element für das linke Element Klammer &#x27;{&#x27; gefunden wurde]]></title><description><![CDATA[<p>Hi, ich bekomme den Fehler (s. Titel) bei diesem Prog (ohne Zeilenangabe).<br />
Wo ist mein Fehler?</p>
<pre><code class="language-csharp">#include &lt;iostream&gt;
#include &lt;ctime&gt;
using namespace std;

int main()
{	int iZufallszahl;
	int iZahl;
	int iZaehler=0;
	srand(time(0));

	do
	{
		iZufallszahl = (rand() % 100 + 1);
		cout &lt;&lt; &quot;Ich denke mir eine Zahl zwischen 1 und 100. \nWelche Zahl ist es?\t&quot;;
		cin &gt;&gt; iZahl;

		if (iZahl &lt; iZufallszahl)
		{	cout &lt;&lt; &quot;\nDie gedachte Zahl ist groesser.&quot;;
		}

		if (iZahl &gt; iZufallszahl)
		{	cout &lt;&lt; &quot;\nDie gedachte Zahl ist kleiner.&quot;;
		}

		iZaehler++;
	}
	while(iZaehler&lt;=10 &amp;&amp; iZahl!=iZufallszahl);

	if (iZahl == iZufallszahl)
	{	cout &lt;&lt; &quot;\nSie haben die Zahl erraten!&quot;;
	}
	else
	{	cout &lt;&lt; &quot;\nSie haben die Zahl nicht erraten.&quot;; 
		cout &lt;&lt; &quot;\nDie gedachte Zahl war &quot; &lt;&lt; iZufallszahl;

	getchar();
	getchar();

	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/133220/fatal-error-c1075-dateiende-erreicht-bevor-das-zugehörige-element-für-das-linke-element-klammer-gefunden-wurde</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 19:04:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/133220.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Jan 2006 10:00:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to fatal error C1075: Dateiende erreicht, bevor das zugehörige Element für das linke Element Klammer &#x27;{&#x27; gefunden wurde on Mon, 16 Jan 2006 10:00:19 GMT]]></title><description><![CDATA[<p>Hi, ich bekomme den Fehler (s. Titel) bei diesem Prog (ohne Zeilenangabe).<br />
Wo ist mein Fehler?</p>
<pre><code class="language-csharp">#include &lt;iostream&gt;
#include &lt;ctime&gt;
using namespace std;

int main()
{	int iZufallszahl;
	int iZahl;
	int iZaehler=0;
	srand(time(0));

	do
	{
		iZufallszahl = (rand() % 100 + 1);
		cout &lt;&lt; &quot;Ich denke mir eine Zahl zwischen 1 und 100. \nWelche Zahl ist es?\t&quot;;
		cin &gt;&gt; iZahl;

		if (iZahl &lt; iZufallszahl)
		{	cout &lt;&lt; &quot;\nDie gedachte Zahl ist groesser.&quot;;
		}

		if (iZahl &gt; iZufallszahl)
		{	cout &lt;&lt; &quot;\nDie gedachte Zahl ist kleiner.&quot;;
		}

		iZaehler++;
	}
	while(iZaehler&lt;=10 &amp;&amp; iZahl!=iZufallszahl);

	if (iZahl == iZufallszahl)
	{	cout &lt;&lt; &quot;\nSie haben die Zahl erraten!&quot;;
	}
	else
	{	cout &lt;&lt; &quot;\nSie haben die Zahl nicht erraten.&quot;; 
		cout &lt;&lt; &quot;\nDie gedachte Zahl war &quot; &lt;&lt; iZufallszahl;

	getchar();
	getchar();

	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/967783</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/967783</guid><dc:creator><![CDATA[sarah1986]]></dc:creator><pubDate>Mon, 16 Jan 2006 10:00:19 GMT</pubDate></item><item><title><![CDATA[Reply to fatal error C1075: Dateiende erreicht, bevor das zugehörige Element für das linke Element Klammer &#x27;{&#x27; gefunden wurde on Mon, 16 Jan 2006 10:03:07 GMT]]></title><description><![CDATA[<p>es fehlt die schließende klammer im else zweig</p>
]]></description><link>https://www.c-plusplus.net/forum/post/967786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/967786</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Mon, 16 Jan 2006 10:03:07 GMT</pubDate></item><item><title><![CDATA[Reply to fatal error C1075: Dateiende erreicht, bevor das zugehörige Element für das linke Element Klammer &#x27;{&#x27; gefunden wurde on Mon, 16 Jan 2006 10:05:39 GMT]]></title><description><![CDATA[<p>danke. nachdem ich seit wochen nix anderes mehr mache, als c++ zu programmieren, überseh ich momentan lauter so kleinigkeiten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/967788</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/967788</guid><dc:creator><![CDATA[sarah1986]]></dc:creator><pubDate>Mon, 16 Jan 2006 10:05:39 GMT</pubDate></item></channel></rss>