<?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[Formatierter&#x2F;unformatierter ifstream]]></title><description><![CDATA[<p>Hi! Ich habe eine Datei mit diesem Aufbau:</p>
<pre><code>Liste von Personen
Hans 25 1.79
Berta 30 1.68
</code></pre>
<p>Nun lese ich das so ein:</p>
<pre><code>... // Variablen deklarieren
getline(filestream, titel);
filestream &gt;&gt; name[0] &gt;&gt; alter[0] &gt;&gt; groesse[0];
filestream &gt;&gt; name[1] &gt;&gt; alter[1] &gt;&gt; groesse[1];
</code></pre>
<p>Ist das ok? Ich habe schon gehört, man solle unformatierten nicht mit formatiertem Input mixen, aber wie macht man das dann am besten?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/310377/formatierter-unformatierter-ifstream</link><generator>RSS for Node</generator><lastBuildDate>Tue, 04 Aug 2026 19:22:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/310377.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 09 Nov 2012 21:26:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Formatierter&#x2F;unformatierter ifstream on Fri, 09 Nov 2012 21:26:50 GMT]]></title><description><![CDATA[<p>Hi! Ich habe eine Datei mit diesem Aufbau:</p>
<pre><code>Liste von Personen
Hans 25 1.79
Berta 30 1.68
</code></pre>
<p>Nun lese ich das so ein:</p>
<pre><code>... // Variablen deklarieren
getline(filestream, titel);
filestream &gt;&gt; name[0] &gt;&gt; alter[0] &gt;&gt; groesse[0];
filestream &gt;&gt; name[1] &gt;&gt; alter[1] &gt;&gt; groesse[1];
</code></pre>
<p>Ist das ok? Ich habe schon gehört, man solle unformatierten nicht mit formatiertem Input mixen, aber wie macht man das dann am besten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2269446</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2269446</guid><dc:creator><![CDATA[lord_tiberius]]></dc:creator><pubDate>Fri, 09 Nov 2012 21:26:50 GMT</pubDate></item><item><title><![CDATA[Reply to Formatierter&#x2F;unformatierter ifstream on Fri, 09 Nov 2012 21:58:58 GMT]]></title><description><![CDATA[<p>lord_tiberius schrieb:</p>
<blockquote>
<p>Ist das ok? Ich habe schon gehört, man solle unformatierten nicht mit formatiertem Input mixen, aber wie macht man das dann am besten?</p>
</blockquote>
<p>Man muss bloß vorsichtig sein dabei. Dies hier sieht richtig aus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2269454</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2269454</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Fri, 09 Nov 2012 21:58:58 GMT</pubDate></item></channel></rss>