<?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[Floats aus Datei laden]]></title><description><![CDATA[<p>Hi! Meine Texdatei sieht folgendermaßen aus;</p>
<p>0.74,3.47564,5.473,485.33</p>
<p>und immer so weiter! Nun möchte ich immer stückchenweise die Floats in einer fload-Variable Speichern. Giebt es sowas wie ifstream::get() nur halt für float werte etc ...</p>
<p>Ich habe keine Ahnung wie ich das anstellen soll!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/239959/floats-aus-datei-laden</link><generator>RSS for Node</generator><lastBuildDate>Tue, 22 Sep 2026 06:25:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/239959.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 29 Apr 2009 21:16:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Floats aus Datei laden on Wed, 29 Apr 2009 21:16:16 GMT]]></title><description><![CDATA[<p>Hi! Meine Texdatei sieht folgendermaßen aus;</p>
<p>0.74,3.47564,5.473,485.33</p>
<p>und immer so weiter! Nun möchte ich immer stückchenweise die Floats in einer fload-Variable Speichern. Giebt es sowas wie ifstream::get() nur halt für float werte etc ...</p>
<p>Ich habe keine Ahnung wie ich das anstellen soll!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1703385</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1703385</guid><dc:creator><![CDATA[Code-Walker]]></dc:creator><pubDate>Wed, 29 Apr 2009 21:16:16 GMT</pubDate></item><item><title><![CDATA[Reply to Floats aus Datei laden on Wed, 29 Apr 2009 22:43:19 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">std::vector&lt;float&gt; values;

// Datei öffnen
std::ifstream file( &quot;...Pfad...&quot; );

// Werte einlesen
for ( float val; file&gt;&gt;val; values.push_back(val) )
	file.get(); // Komma überspringen

// Ausgeben
std::copy( values.begin(), values.end(), std::ostream_iterator&lt;float&gt;(std::cout,&quot;\n&quot;) );
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1703410</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1703410</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Wed, 29 Apr 2009 22:43:19 GMT</pubDate></item></channel></rss>