<?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[Programm abspeichern]]></title><description><![CDATA[<p>Hallo, ich würde gerne ein Programm mit ifstream baspeichern. Dass also die Werte beim Starten des Programms geladen Werten. Wie mache ich das?<br />
Danke schonmal für eure Antworten.<br />
MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/169754/programm-abspeichern</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 20:32:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/169754.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Jan 2007 16:13:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Programm abspeichern on Mon, 08 Jan 2007 16:42:08 GMT]]></title><description><![CDATA[<p>Hallo, ich würde gerne ein Programm mit ifstream baspeichern. Dass also die Werte beim Starten des Programms geladen Werten. Wie mache ich das?<br />
Danke schonmal für eure Antworten.<br />
MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1205789</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1205789</guid><dc:creator><![CDATA[Rastaman]]></dc:creator><pubDate>Mon, 08 Jan 2007 16:42:08 GMT</pubDate></item><item><title><![CDATA[Reply to Programm abspeichern on Mon, 08 Jan 2007 20:12:45 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>hier ein kleines Beispiel, welches hoffentlich Licht ins Dunkle bringt. <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="🙂"
    /> Wenn noch weitere Unklarheiten bestehen, bitte eine konkretere Frage formulieren.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;fstream&gt;
#include &lt;iterator&gt;
#include &lt;algorithm&gt;
using namespace std;

int main()
{
        int v[] = { 1, 2, 4, 8, 16 };

        ofstream os(&quot;d.dat&quot;);
        ostream_iterator&lt;int&gt; oi(os, &quot; &quot;);
        copy(&amp;v[0], &amp;v[5], oi);
        os.close();

        ifstream is(&quot;d.dat&quot;);
        istream_iterator&lt;int&gt; ii(is);
        istream_iterator&lt;int&gt; eos;
        copy(ii, eos, ostream_iterator&lt;int&gt;(cout, &quot; &quot;));
}
</code></pre>
<p>Grüße<br />
Martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1206001</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1206001</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 08 Jan 2007 20:12:45 GMT</pubDate></item></channel></rss>