<?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[ofstream und date Format]]></title><description><![CDATA[<p>Hallo,</p>
<p>möchte eine Variable von Typ date auf ofstream schreiben.</p>
<p>#include &lt;fstream.h&gt;</p>
<p>ofstream ofile;</p>
<p>AnsiString datum = StrToDate(RechDat-&gt;Text);<br />
ofile &lt;&lt; datum.c_str();</p>
<p>Wie geht es ? Habe immer Fehler.</p>
<p>Danke<br />
bo</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/150820/ofstream-und-date-format</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 21:36:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/150820.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 20 Jun 2006 13:00:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ofstream und date Format on Tue, 20 Jun 2006 13:00:24 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>möchte eine Variable von Typ date auf ofstream schreiben.</p>
<p>#include &lt;fstream.h&gt;</p>
<p>ofstream ofile;</p>
<p>AnsiString datum = StrToDate(RechDat-&gt;Text);<br />
ofile &lt;&lt; datum.c_str();</p>
<p>Wie geht es ? Habe immer Fehler.</p>
<p>Danke<br />
bo</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081426</guid><dc:creator><![CDATA[bo]]></dc:creator><pubDate>Tue, 20 Jun 2006 13:00:24 GMT</pubDate></item><item><title><![CDATA[Reply to ofstream und date Format on Tue, 20 Jun 2006 13:04:17 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Mehre Dinge:</p>
<p>1. benutze &lt;fstream&gt; ohne .h</p>
<p>2. schreib doch bitte deine Fehlermeldung, weil hier keiner raten will.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081433</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081433</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 20 Jun 2006 13:04:17 GMT</pubDate></item><item><title><![CDATA[Reply to ofstream und date Format on Tue, 20 Jun 2006 13:18:51 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>da du offenbar den BCB mit der VCL (AnsiString) benutzt :<br />
Lies dir nochmal durch was die Funktion StrToDate für einen Rückgabewert hat</p>
<p>BCB-Hilfe schrieb:</p>
<blockquote>
<p>TDateTime StrToDate(const AnsiString S);</p>
</blockquote>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081447</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081447</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 20 Jun 2006 13:18:51 GMT</pubDate></item><item><title><![CDATA[Reply to ofstream und date Format on Tue, 20 Jun 2006 13:28:44 GMT]]></title><description><![CDATA[<p>Eigentlich wollte ich das so haben.</p>
<p>ofile &lt;&lt; StrToDate(RechDat-&gt;Text);</p>
<p>Kriege aber bei compilieren Fehler:</p>
<p>[C++ Error] E2015 Ambiguity between 'std::basic_ostream&lt;char,std::char_traits&lt;char&gt; &gt;::operator &lt;&lt;(int)' and 'std::basic_ostream&lt;char,std::char_traits&lt;char&gt; &gt;::operator &lt;&lt;(double)'.</p>
<p>Ich muss das aber irgenwie im date Typ reinkriegen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081458</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081458</guid><dc:creator><![CDATA[bo]]></dc:creator><pubDate>Tue, 20 Jun 2006 13:28:44 GMT</pubDate></item><item><title><![CDATA[Reply to ofstream und date Format on Tue, 20 Jun 2006 13:44:53 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Grundsätzlich</p>
<pre><code class="language-cpp">ofile &lt;&lt; RechDat-&gt;Text.c_str();
</code></pre>
<p>oder</p>
<pre><code class="language-cpp">TDateTime buffer = StrToDate(RechDat-&gt;Text); // Must noch sicherstellen das hier wirklich ein gültiges Datum eingegebenen wurde
...
ofile &lt;&lt; buffer.DateString().c_str();
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1081474</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1081474</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 20 Jun 2006 13:44:53 GMT</pubDate></item></channel></rss>