<?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[&amp;quot;Textformatierung&amp;quot; in C++]]></title><description><![CDATA[<p>Hi,<br />
ich möchte meine &quot;alten&quot; Konsole-Programme<br />
ein bisschen aufpeppen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Deshalb wollte ich euch fragen, was man außer</p>
<pre><code>endl
</code></pre>
<p>noch alles an</p>
<pre><code>cout
</code></pre>
<p>übergeben kann.<br />
Ich würde z.B. gerne eine alte Ausgabe löschen oder wenigstens<br />
die Konsole &quot;clearen&quot;,<br />
außerdem würde ich gerne die Hintergrundfarbe und die Schriftfarbe<br />
ändern.</p>
<p>Danke schonmal,<br />
Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/168216/quot-textformatierung-quot-in-c</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 08:32:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/168216.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 19 Dec 2006 16:52:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &amp;quot;Textformatierung&amp;quot; in C++ on Tue, 19 Dec 2006 16:52:10 GMT]]></title><description><![CDATA[<p>Hi,<br />
ich möchte meine &quot;alten&quot; Konsole-Programme<br />
ein bisschen aufpeppen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /><br />
Deshalb wollte ich euch fragen, was man außer</p>
<pre><code>endl
</code></pre>
<p>noch alles an</p>
<pre><code>cout
</code></pre>
<p>übergeben kann.<br />
Ich würde z.B. gerne eine alte Ausgabe löschen oder wenigstens<br />
die Konsole &quot;clearen&quot;,<br />
außerdem würde ich gerne die Hintergrundfarbe und die Schriftfarbe<br />
ändern.</p>
<p>Danke schonmal,<br />
Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194958</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194958</guid><dc:creator><![CDATA[Listing]]></dc:creator><pubDate>Tue, 19 Dec 2006 16:52:10 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Textformatierung&amp;quot; in C++ on Tue, 19 Dec 2006 17:03:10 GMT]]></title><description><![CDATA[<p>C++ stellt dir da eher wenig zu Verfügung, im wesentlichen die Inhalte der &lt;iomanip&gt;. Wenn dir das nicht reicht, dann kannst du natürlich selbst noch Manipulatoren schreiben. Für Sachen wie Farben wirst du aber auf APIs bzw. Steuercodes zurückgreifen müssen, die speziell für deine Ziel-Konsole existieren. Mit Standard-C++ wird sich da eher wenig machen lassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194968</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194968</guid><dc:creator><![CDATA[Der Meister]]></dc:creator><pubDate>Tue, 19 Dec 2006 17:03:10 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Textformatierung&amp;quot; in C++ on Tue, 19 Dec 2006 17:07:41 GMT]]></title><description><![CDATA[<p>Hmmm,<br />
ich denk so an Konsolen im &quot;Matrix-Style&quot; und so ^^<br />
und dass wie manchmal im Filmen die Buchstaben erst durch ein raster gehen</p>
<pre><code>myPrint(&quot;cbc&quot;);
output:
  a &lt;- Clearscreen
  b &lt;- Clearscreen
  c &lt;- Clearscreen
  ca &lt;- Clearscreen
  cb &lt;- Clearscreen
  cba &lt;- Clearscreen
  cbb &lt;- Clearscreen
  cbc
</code></pre>
<p>Also dass die Buchstaben so &quot;runterklappen&quot;,<br />
hab das mit Style oft schon gesehen (ich glaub sind oft VisualBasic Programme :D)<br />
wie machen die das denn?<br />
Aber danke schonmal für die Auskunft</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194971</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194971</guid><dc:creator><![CDATA[Listing]]></dc:creator><pubDate>Tue, 19 Dec 2006 17:07:41 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Textformatierung&amp;quot; in C++ on Tue, 19 Dec 2006 17:15:46 GMT]]></title><description><![CDATA[<p>Streams kann man z.B. mit folgenden Funktionen manipulieren<br />
für eine formatierte Ausgabe.</p>
<p>std::fstream fout;</p>
<p>...</p>
<p>fout.fill(' ');<br />
fout.width(12);<br />
fout.precision(2);<br />
fout.setf(std::ios::right, std::ios::adjustfield);<br />
fout.flags(std::ios::fixed);</p>
<p>Hier die Hilfe der MSDN</p>
<p>Viel Spaß,</p>
<p>As the iostream class hierarchy diagram shows, ios is the base class for all the input/output stream classes. While ios is not technically an abstract base class, you will not usually construct ios objects, nor will you derive classes directly from ios. Instead, you will use the derived classes istream and ostream or other derived classes.</p>
<p>Even though you will not use ios directly, you will be using many of the inherited member functions and data members described here. Remember that these inherited member function descriptions are not duplicated for derived classes.</p>
<p>Data Members (static) — Public Members</p>
<p>basefield</p>
<p>Mask for obtaining the conversion base flags (dec, oct, or hex).</p>
<p>adjustfield</p>
<p>Mask for obtaining the field padding flags (left, right, or internal).</p>
<p>floatfield</p>
<p>Mask for obtaining the numeric format (scientific or fixed).</p>
<p>Construction/Destruction — Public Members</p>
<p>ios</p>
<p>Constructor for use in derived classes.</p>
<p>~ios</p>
<p>Virtual destructor.</p>
<p>Flag and Format Access Functions — Public Members</p>
<p>flags</p>
<p>Sets or reads the stream’s format flags.</p>
<p>setf</p>
<p>Manipulates the stream’s format flags.</p>
<p>unsetf</p>
<p>Clears the stream’s format flags.</p>
<p>fill</p>
<p>Sets or reads the stream’s fill character.</p>
<p>precision</p>
<p>Sets or reads the stream’s floating-point format display precision.</p>
<p>width</p>
<p>Sets or reads the stream’s output field width.</p>
<p>Status-Testing Functions — Public Members</p>
<p>good</p>
<p>Indicates good stream status.</p>
<p>bad</p>
<p>Indicates a serious I/O error.</p>
<p>eof</p>
<p>Indicates end of file.</p>
<p>fail</p>
<p>Indicates a serious I/O error or a possibly recoverable I/O formatting error.</p>
<p>rdstate</p>
<p>Returns the stream’s error flags.</p>
<p>clear</p>
<p>Sets or clears the stream’s error flags.</p>
<p>User-Defined Format Flags — Public Members</p>
<p>bitalloc</p>
<p>Provides a mask for an unused format bit in the stream’s private flags variable (static function).</p>
<p>xalloc</p>
<p>Provides an index to an unused word in an array reserved for special-purpose stream state variables (static function).</p>
<p>iword</p>
<p>Converts the index provided by xalloc to a reference (valid only until the next xalloc).</p>
<p>pword</p>
<p>Converts the index provided by xalloc to a pointer (valid only until the next xalloc).</p>
<p>Other Functions — Public Members</p>
<p>delbuf</p>
<p>Controls the connection of streambuf deletion with ios destruction.</p>
<p>rdbuf</p>
<p>Gets the stream’s streambuf object.</p>
<p>sync_with_stdio</p>
<p>Synchronizes the predefined objects cin, cout, cerr, and clog with the standard I/O system.</p>
<p>tie</p>
<p>Ties a specified ostream to this stream.</p>
<p>Operators — Public Members</p>
<p>operator void*</p>
<p>Converts a stream to a pointer that can be used only for error checking.</p>
<p>operator !</p>
<p>Returns a nonzero value if a stream I/O error occurs.</p>
<p>ios Manipulators</p>
<p>dec</p>
<p>Causes the interpretation of subsequent fields in decimal format (the default mode).</p>
<p>hex</p>
<p>Causes the interpretation of subsequent fields in hexadecimal format.</p>
<p>oct</p>
<p>Causes the interpretation of subsequent fields in octal format.</p>
<p>binary</p>
<p>Sets the stream’s mode to binary (stream must have an associated filebuf buffer).</p>
<p>text</p>
<p>Sets the stream’s mode to text, the default mode (stream must have an associated filebuf buffer).</p>
<p>Parameterized Manipulators</p>
<p>(#include &lt;iomanip.h&gt; required)</p>
<p>setiosflags</p>
<p>Sets the stream’s format flags.</p>
<p>resetiosflags</p>
<p>Resets the stream’s format flags.</p>
<p>setfill</p>
<p>Sets the stream’s fill character.</p>
<p>setprecision</p>
<p>Sets the stream’s floating-point display precision.</p>
<p>setw</p>
<p>Sets the stream’s field width (for the next field only).</p>
<p>Abstract Stream Base Class</p>
<p>See Also istream, ostream</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194978</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194978</guid><dc:creator><![CDATA[schokomann]]></dc:creator><pubDate>Tue, 19 Dec 2006 17:15:46 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Textformatierung&amp;quot; in C++ on Tue, 19 Dec 2006 17:45:04 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>@ schokomann : Beim nächsten Mal reicht ein Link auf die Seite aus der MSDN.<br />
Aber wie Meister schon gesagt, kann Standard-C++ zum Beispiel Farben nicht, das geht nur mit zusätzlichen plattformspezifischen Mitteln. Schau in die Konsolen-FAQ hier im Forum, da gibts einen Thread zur Improved Console.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194987</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194987</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Tue, 19 Dec 2006 17:45:04 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Textformatierung&amp;quot; in C++ on Tue, 19 Dec 2006 17:45:46 GMT]]></title><description><![CDATA[<p>ja, mache ich.<br />
Ich habe mich auch verlesen. Ich war der Meinung die Ausgabe sollte<br />
formatiert sein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1194993</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1194993</guid><dc:creator><![CDATA[schokomann]]></dc:creator><pubDate>Tue, 19 Dec 2006 17:45:46 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Textformatierung&amp;quot; in C++ on Tue, 19 Dec 2006 18:31:07 GMT]]></title><description><![CDATA[<p>akari schrieb:</p>
<blockquote>
<p>Hallo</p>
<p>@ schokomann : Beim nächsten Mal reicht ein Link auf die Seite aus der MSDN.<br />
Aber wie Meister schon gesagt, kann Standard-C++ zum Beispiel Farben nicht, das geht nur mit zusätzlichen plattformspezifischen Mitteln. Schau in die Konsolen-FAQ hier im Forum, da gibts einen Thread zur Improved Console.</p>
<p>bis bald<br />
akari</p>
</blockquote>
<p>Ok Danke und auch danke an schokomann,<br />
bin jetzt dank euch auf dem &quot;aktuellen&quot; Stand <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1195023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1195023</guid><dc:creator><![CDATA[Listing]]></dc:creator><pubDate>Tue, 19 Dec 2006 18:31:07 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;Textformatierung&amp;quot; in C++ on Tue, 19 Dec 2006 18:35:52 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Schau doch mal ins Consolenforum und dort genau bei der Improved Console. Mit der kann man genau das machen, was du willst.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1195027</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1195027</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 19 Dec 2006 18:35:52 GMT</pubDate></item></channel></rss>