<?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[cout &amp;lt;&amp;lt; fixed;]]></title><description><![CDATA[<p>Wie kann ich wenn ich mit den Manipulatoren fixed oder scientific arbeite später wieder die Grundeinstellung bekommen?<br />
Beispiel:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int main ()
{
    cout &lt;&lt; fixed &lt;&lt; 12.4 &lt;&lt; endl;
    cout &lt;&lt; scientific &lt;&lt; 12.4 &lt;&lt; endl;
    cout &lt;&lt; 12.4 &lt;&lt; endl;
    return 0;
}
</code></pre>
<p>Dabei soll dann Folgendes rauskommen:</p>
<blockquote>
<p>12.400<br />
1.240e+001<br />
12.4</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/201420/cout-lt-lt-fixed</link><generator>RSS for Node</generator><lastBuildDate>Tue, 06 Oct 2026 12:12:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/201420.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 29 Dec 2007 18:22:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to cout &amp;lt;&amp;lt; fixed; on Sat, 29 Dec 2007 18:22:47 GMT]]></title><description><![CDATA[<p>Wie kann ich wenn ich mit den Manipulatoren fixed oder scientific arbeite später wieder die Grundeinstellung bekommen?<br />
Beispiel:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
using namespace std;

int main ()
{
    cout &lt;&lt; fixed &lt;&lt; 12.4 &lt;&lt; endl;
    cout &lt;&lt; scientific &lt;&lt; 12.4 &lt;&lt; endl;
    cout &lt;&lt; 12.4 &lt;&lt; endl;
    return 0;
}
</code></pre>
<p>Dabei soll dann Folgendes rauskommen:</p>
<blockquote>
<p>12.400<br />
1.240e+001<br />
12.4</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1427744</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1427744</guid><dc:creator><![CDATA[Nautilator]]></dc:creator><pubDate>Sat, 29 Dec 2007 18:22:47 GMT</pubDate></item><item><title><![CDATA[Reply to cout &amp;lt;&amp;lt; fixed; on Sat, 29 Dec 2007 20:13:07 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">cout.setf(ios_base::fmtflags(0), ios_base::floatfield);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1427806</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1427806</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Sat, 29 Dec 2007 20:13:07 GMT</pubDate></item><item><title><![CDATA[Reply to cout &amp;lt;&amp;lt; fixed; on Sat, 29 Dec 2007 20:43:34 GMT]]></title><description><![CDATA[<p>Danke, funzt <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1427822</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1427822</guid><dc:creator><![CDATA[Nautilator]]></dc:creator><pubDate>Sat, 29 Dec 2007 20:43:34 GMT</pubDate></item><item><title><![CDATA[Reply to cout &amp;lt;&amp;lt; fixed; on Sun, 30 Dec 2007 20:50:09 GMT]]></title><description><![CDATA[<p>Noch eine Frage:</p>
<p>Ist</p>
<p>cout &lt;&lt; fixed;</p>
<p>das selbe wie</p>
<p>cout setiosflags(ios::fixed)</p>
<p>oder gibt es da einen Unterschied?<br />
Wenn das beides gleich ist, könnte man es doch auch mit</p>
<p>resetisflags(ios::fixed)</p>
<p>zurücksetzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1428268</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428268</guid><dc:creator><![CDATA[Nautilator]]></dc:creator><pubDate>Sun, 30 Dec 2007 20:50:09 GMT</pubDate></item><item><title><![CDATA[Reply to cout &amp;lt;&amp;lt; fixed; on Sun, 30 Dec 2007 21:10:12 GMT]]></title><description><![CDATA[<p>Der einzige Unterschied ist für mich die verwendung von iomanip<br />
Wenn ich die Manipulatoren aus iostream verwende:<br />
Gibt es da eine Möglichkeit sie einzeln zurückzusetzen, wie setiosflags/resetiosflags?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1428274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428274</guid><dc:creator><![CDATA[Nautilator]]></dc:creator><pubDate>Sun, 30 Dec 2007 21:10:12 GMT</pubDate></item><item><title><![CDATA[Reply to cout &amp;lt;&amp;lt; fixed; on Sun, 30 Dec 2007 23:59:36 GMT]]></title><description><![CDATA[<p>Ja, du kannst auch alternativ setiosflags(...) bzw. resetiosflags(...) als Manipulatoren verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1428361</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1428361</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Sun, 30 Dec 2007 23:59:36 GMT</pubDate></item><item><title><![CDATA[Reply to cout &amp;lt;&amp;lt; fixed; on Mon, 07 Jan 2008 11:02:57 GMT]]></title><description><![CDATA[<p>Als Nachtrag, wie man einen eigenen Manipulator (ohne Parameter) erzeugen kann:</p>
<pre><code class="language-cpp">template&lt;class Ch, class Tr = char_traits&lt;Ch&gt; &gt;
basic_ostream&lt;Ch, Tr&gt;&amp; default_output(basic_ostream&lt;Ch, Tr&gt;&amp; s)
{
  s.setf(ios_base::fmtflags(0), ios_base::floatfield);
}

// Anwendung
const double x = 1234.56789;
cout &lt;&lt; fixed &lt;&lt; x &lt;&lt; endl;
cout &lt;&lt; default_output &lt;&lt; x;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1432293</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1432293</guid><dc:creator><![CDATA[Th]]></dc:creator><pubDate>Mon, 07 Jan 2008 11:02:57 GMT</pubDate></item></channel></rss>