<?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[file.eof could not convert ... to &#x27;bool&#x27;]]></title><description><![CDATA[<p>Hallo<br />
Ich habe in meinem Programm folgende Zeile:</p>
<pre><code class="language-cpp">while(!file.eof)
</code></pre>
<p>An dieser stelle sagt jedoch der Compiler:</p>
<pre><code class="language-cpp">electronicpartdb.cc:294: error: could not convert
'file.std::basic_ios&lt;_CharT, _Traits&gt;::eof [with _CharT = char, _Traits =
std::char_traits&lt;char&gt;]' to 'bool'
</code></pre>
<p>Aber eof ist gerade vom Typ bool. Ich habe leider überhaupt keinen Plan wo das Problem liegt.</p>
<p>Kann mir jemand helfen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/164140/file-eof-could-not-convert-to-bool</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 16:48:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/164140.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 05 Nov 2006 15:57:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to file.eof could not convert ... to &#x27;bool&#x27; on Sun, 05 Nov 2006 15:57:39 GMT]]></title><description><![CDATA[<p>Hallo<br />
Ich habe in meinem Programm folgende Zeile:</p>
<pre><code class="language-cpp">while(!file.eof)
</code></pre>
<p>An dieser stelle sagt jedoch der Compiler:</p>
<pre><code class="language-cpp">electronicpartdb.cc:294: error: could not convert
'file.std::basic_ios&lt;_CharT, _Traits&gt;::eof [with _CharT = char, _Traits =
std::char_traits&lt;char&gt;]' to 'bool'
</code></pre>
<p>Aber eof ist gerade vom Typ bool. Ich habe leider überhaupt keinen Plan wo das Problem liegt.</p>
<p>Kann mir jemand helfen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1168959</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1168959</guid><dc:creator><![CDATA[Marcin]]></dc:creator><pubDate>Sun, 05 Nov 2006 15:57:39 GMT</pubDate></item><item><title><![CDATA[Reply to file.eof could not convert ... to &#x27;bool&#x27; on Sun, 05 Nov 2006 16:01:34 GMT]]></title><description><![CDATA[<p>Marcin schrieb:</p>
<blockquote>
<p>Aber eof ist gerade vom Typ bool.</p>
</blockquote>
<p>Nein. eof ist eine Methode, die bool zurückgibt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1168963</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1168963</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sun, 05 Nov 2006 16:01:34 GMT</pubDate></item><item><title><![CDATA[Reply to file.eof could not convert ... to &#x27;bool&#x27; on Sun, 05 Nov 2006 16:22:01 GMT]]></title><description><![CDATA[<blockquote>
<blockquote>
<p>Nein. eof ist eine Methode, die bool zurückgibt.<br />
Habe ich etwas anderes geschrieben?<br />
Es tut mir leid aber ich verstehe nicht was du meinst.</p>
</blockquote>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1168978</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1168978</guid><dc:creator><![CDATA[Marcin]]></dc:creator><pubDate>Sun, 05 Nov 2006 16:22:01 GMT</pubDate></item><item><title><![CDATA[Reply to file.eof could not convert ... to &#x27;bool&#x27; on Sun, 05 Nov 2006 16:59:11 GMT]]></title><description><![CDATA[<p>Marcin schrieb:</p>
<blockquote>
<p>Habe ich etwas anderes geschrieben?</p>
</blockquote>
<p>Ja. Aber um zum Fehler zurückzukommen, eine Funktion muss aufgerufen werden, also</p>
<pre><code class="language-cpp">file.eof()
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1169006</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1169006</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Sun, 05 Nov 2006 16:59:11 GMT</pubDate></item><item><title><![CDATA[Reply to file.eof could not convert ... to &#x27;bool&#x27; on Sun, 05 Nov 2006 17:15:53 GMT]]></title><description><![CDATA[<p>Ok, Danke Leute.<br />
Jetzt verstehe ich warum die deiden Antworten so nichtsaussagend waren.<br />
Natürlich war mir klar das eof eine Methode ist, und keine Variable, ich habe die fehlenden () ganze zeit einfach übersehen.<br />
In eigenem Code sieht man manchmal die einfachsten Fehler nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1169022</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1169022</guid><dc:creator><![CDATA[Marcin]]></dc:creator><pubDate>Sun, 05 Nov 2006 17:15:53 GMT</pubDate></item></channel></rss>