<?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[fstream wird nicht included]]></title><description><![CDATA[<p>Hi!<br />
folgendes Problem:<br />
ich habe eine Header Datei in der eine Klasse steht und eine weitere Datei, in der die Funktionen aufgeführt werden.<br />
(in beiden Dateien habe ich den unwichtigen Teil ausgelassen)</p>
<pre><code>//Header Karte.h
#include &lt;fstream&gt;

class Karte
{
      public:
             char Karte[35][20];
             void holen(char Name[32]);
};
</code></pre>
<pre><code>//Karte.cpp
#include &quot;Karte.h&quot;

void Karte::holen(char Name[32])
{
     ifstream f;
     f.open(Name);
     for(int x=0; x&lt;35; x++)
     {
             for(int y=0; y&lt;20; y++)
             {
                     f.get(Karte[x][y]);
             }
     }
     f.close();
}
</code></pre>
<p>jetzt spuckt er mir aber den Fehler aus, dass er ifstream nicht findet. warum? überseh ich da nur einen blöden Rechtschreibfehler?<br />
Danke im voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/305205/fstream-wird-nicht-included</link><generator>RSS for Node</generator><lastBuildDate>Thu, 25 Jun 2026 11:18:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/305205.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Jun 2012 20:10:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to fstream wird nicht included on Sat, 23 Jun 2012 20:11:06 GMT]]></title><description><![CDATA[<p>Hi!<br />
folgendes Problem:<br />
ich habe eine Header Datei in der eine Klasse steht und eine weitere Datei, in der die Funktionen aufgeführt werden.<br />
(in beiden Dateien habe ich den unwichtigen Teil ausgelassen)</p>
<pre><code>//Header Karte.h
#include &lt;fstream&gt;

class Karte
{
      public:
             char Karte[35][20];
             void holen(char Name[32]);
};
</code></pre>
<pre><code>//Karte.cpp
#include &quot;Karte.h&quot;

void Karte::holen(char Name[32])
{
     ifstream f;
     f.open(Name);
     for(int x=0; x&lt;35; x++)
     {
             for(int y=0; y&lt;20; y++)
             {
                     f.get(Karte[x][y]);
             }
     }
     f.close();
}
</code></pre>
<p>jetzt spuckt er mir aber den Fehler aus, dass er ifstream nicht findet. warum? überseh ich da nur einen blöden Rechtschreibfehler?<br />
Danke im voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2226514</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2226514</guid><dc:creator><![CDATA[Clundsch]]></dc:creator><pubDate>Sat, 23 Jun 2012 20:11:06 GMT</pubDate></item><item><title><![CDATA[Reply to fstream wird nicht included on Sat, 23 Jun 2012 20:24:09 GMT]]></title><description><![CDATA[<p>std::ifstream</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2226517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2226517</guid><dc:creator><![CDATA[5cript]]></dc:creator><pubDate>Sat, 23 Jun 2012 20:24:09 GMT</pubDate></item><item><title><![CDATA[Reply to fstream wird nicht included on Sat, 23 Jun 2012 20:25:45 GMT]]></title><description><![CDATA[<p>oh mann! war ja klar das ich was kleines übersehen hab. Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2226519</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2226519</guid><dc:creator><![CDATA[Clundsch]]></dc:creator><pubDate>Sat, 23 Jun 2012 20:25:45 GMT</pubDate></item></channel></rss>