<?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[Ein noch dickeres Problem]]></title><description><![CDATA[<pre><code>ofstream output(&quot;Output.data&quot;, ofstream::binary);
char a[255];
unsigned int dez=20000;

int main()
{
    output.write(a&amp;,wert);

}
</code></pre>
<p>Wenn die Textdatei erstellt ist ist sie aber komischerweise leer?Müsste nicht der Wert von dez drin stehn? mit nem typecast hab ichs auch schon versucht also (char)dez aber sie ist trozdem leer. Wie bringe ich den dez als string rüber?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/132291/ein-noch-dickeres-problem</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 10:56:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/132291.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Jan 2006 16:58:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ein noch dickeres Problem on Mon, 09 Jan 2006 17:03:31 GMT]]></title><description><![CDATA[<pre><code>ofstream output(&quot;Output.data&quot;, ofstream::binary);
char a[255];
unsigned int dez=20000;

int main()
{
    output.write(a&amp;,wert);

}
</code></pre>
<p>Wenn die Textdatei erstellt ist ist sie aber komischerweise leer?Müsste nicht der Wert von dez drin stehn? mit nem typecast hab ichs auch schon versucht also (char)dez aber sie ist trozdem leer. Wie bringe ich den dez als string rüber?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/961985</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/961985</guid><dc:creator><![CDATA[LeeCt]]></dc:creator><pubDate>Mon, 09 Jan 2006 17:03:31 GMT</pubDate></item><item><title><![CDATA[Reply to Ein noch dickeres Problem on Mon, 09 Jan 2006 17:03:01 GMT]]></title><description><![CDATA[<p>???</p>
<pre><code class="language-cpp">int main()
{//ungetestet
   ofstream output(&quot;Output.data&quot;, ofstream::binary);
   unsigned int dez=20000;
   output.write(&amp;dez,sizeof(dez));
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/961993</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/961993</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Mon, 09 Jan 2006 17:03:01 GMT</pubDate></item><item><title><![CDATA[Reply to Ein noch dickeres Problem on Mon, 09 Jan 2006 17:21:17 GMT]]></title><description><![CDATA[<p>Ok 2 problem ich krieg jetzt diese zeichen in der text datei ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ. wie wandle ich die in zahlen um? also in 20000.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/961994</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/961994</guid><dc:creator><![CDATA[LeeCt]]></dc:creator><pubDate>Mon, 09 Jan 2006 17:21:17 GMT</pubDate></item><item><title><![CDATA[Reply to Ein noch dickeres Problem on Mon, 09 Jan 2006 17:41:02 GMT]]></title><description><![CDATA[<p>Indem du sie wieder per read() zurückliest? (wenn du etwas für dich lesbareres haben willst, solltest du eher operator&lt;&lt; verwenden)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/962013</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/962013</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 09 Jan 2006 17:41:02 GMT</pubDate></item><item><title><![CDATA[Reply to Ein noch dickeres Problem on Mon, 09 Jan 2006 17:45:48 GMT]]></title><description><![CDATA[<p>Das ist ja nicht Sinn der Sache! ich will das der Wert von &quot;dez&quot; in einer Textdatei als string ausgegben wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/962015</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/962015</guid><dc:creator><![CDATA[LeeCt]]></dc:creator><pubDate>Mon, 09 Jan 2006 17:45:48 GMT</pubDate></item><item><title><![CDATA[Reply to Ein noch dickeres Problem on Mon, 09 Jan 2006 17:59:55 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">unsigned int dez=...;
ofstream fout(&quot;data.txt&quot;);
fout&lt;&lt;dez;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/962025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/962025</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 09 Jan 2006 17:59:55 GMT</pubDate></item><item><title><![CDATA[Reply to Ein noch dickeres Problem on Mon, 09 Jan 2006 18:48:34 GMT]]></title><description><![CDATA[<p>LeeCt schrieb:</p>
<blockquote>
<p>Das ist ja nicht Sinn der Sache! ich will das der Wert von &quot;dez&quot; in einer Textdatei als string ausgegben wird.</p>
</blockquote>
<p>Wie kommst du dann auf die Idee, explizit den Binärdateimodus anzuschalten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/962074</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/962074</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Mon, 09 Jan 2006 18:48:34 GMT</pubDate></item></channel></rss>