<?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[setw() in cout?]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich möchte setw(2) benutzen:</p>
<pre><code class="language-cpp">cout &lt;&lt; hex &lt;&lt; setw(2) &lt;&lt; 122 &lt;&lt; endl;
</code></pre>
<p>Die Fehlermeldung ist:</p>
<blockquote>
<p>error C2065: 'setw' : undeclared identifier</p>
</blockquote>
<p>Ich finde aber überhaupt keinen Treffer?<br />
<a href="http://www.google.de/search?hl=de&amp;client=firefox-a&amp;rls=org.mozilla%3Ade%3Aofficial&amp;q=%22%27setw%27+%3A+undeclared+identifier%22&amp;btnG=Suche&amp;meta=lr%3D" rel="nofollow">http://www.google.de/search?hl=de&amp;client=firefox-a&amp;rls=org.mozilla%3Ade%3Aofficial&amp;q=&quot;'setw'+%3A+undeclared+identifier&quot;&amp;btnG=Suche&amp;meta=lr%3D</a></p>
<p>setw() scheint es aber in C++ zu geben:<br />
<a href="http://www.willemer.de/informatik/cpp/iostream.htm" rel="nofollow">http://www.willemer.de/informatik/cpp/iostream.htm</a></p>
<p>Was muß ich ausser iostream noch einbinden?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/177122/setw-in-cout</link><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 18:30:33 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/177122.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 Mar 2007 13:25:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to setw() in cout? on Wed, 28 Mar 2007 13:25:52 GMT]]></title><description><![CDATA[<p>Hallo Forum,</p>
<p>ich möchte setw(2) benutzen:</p>
<pre><code class="language-cpp">cout &lt;&lt; hex &lt;&lt; setw(2) &lt;&lt; 122 &lt;&lt; endl;
</code></pre>
<p>Die Fehlermeldung ist:</p>
<blockquote>
<p>error C2065: 'setw' : undeclared identifier</p>
</blockquote>
<p>Ich finde aber überhaupt keinen Treffer?<br />
<a href="http://www.google.de/search?hl=de&amp;client=firefox-a&amp;rls=org.mozilla%3Ade%3Aofficial&amp;q=%22%27setw%27+%3A+undeclared+identifier%22&amp;btnG=Suche&amp;meta=lr%3D" rel="nofollow">http://www.google.de/search?hl=de&amp;client=firefox-a&amp;rls=org.mozilla%3Ade%3Aofficial&amp;q=&quot;'setw'+%3A+undeclared+identifier&quot;&amp;btnG=Suche&amp;meta=lr%3D</a></p>
<p>setw() scheint es aber in C++ zu geben:<br />
<a href="http://www.willemer.de/informatik/cpp/iostream.htm" rel="nofollow">http://www.willemer.de/informatik/cpp/iostream.htm</a></p>
<p>Was muß ich ausser iostream noch einbinden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1254613</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1254613</guid><dc:creator><![CDATA[C++ Anfänger 2]]></dc:creator><pubDate>Wed, 28 Mar 2007 13:25:52 GMT</pubDate></item><item><title><![CDATA[Reply to setw() in cout? on Wed, 28 Mar 2007 13:38:40 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-9713.html" rel="nofollow">estartu</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-1.html" rel="nofollow">MFC (Visual C++)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1254627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1254627</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 28 Mar 2007 13:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to setw() in cout? on Wed, 28 Mar 2007 13:43:47 GMT]]></title><description><![CDATA[<p>Es wäre die iomanip gewesen:</p>
<pre><code class="language-cpp">#include &lt;iomanip&gt;
</code></pre>
<p>Aber schon komisch das es dazu keinen Thread gibt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1254636</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1254636</guid><dc:creator><![CDATA[C++ Anfänger 2]]></dc:creator><pubDate>Wed, 28 Mar 2007 13:43:47 GMT</pubDate></item><item><title><![CDATA[Reply to setw() in cout? on Wed, 28 Mar 2007 13:46:57 GMT]]></title><description><![CDATA[<p>Hehe ... in die Falle tappe ich auch immer wieder. <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="😃"
    /> <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>
<p>Dann weiß ichs wieder für ein paar Wochen ... und wenn ichs schon länger nicht mehr verwendet habe, trete ich wieder rein.</p>
<p>Schön, dass Du's gefunden hast,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1254644</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1254644</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Wed, 28 Mar 2007 13:46:57 GMT</pubDate></item><item><title><![CDATA[Reply to setw() in cout? on Wed, 28 Mar 2007 13:49:33 GMT]]></title><description><![CDATA[<p>C++ Anfänger 2 schrieb:</p>
<blockquote>
<p>Aber schon komisch das es dazu keinen Thread gibt...</p>
</blockquote>
<p>Das ist überhaupt nicht komisch.</p>
<p>Es gibt nicht für jeden möglichen Bezeichner einen passenden Treffer im Web für die exakte Buchstabenkombination &quot;'BEZEICHNER' : undeclared identifier&quot;, weil man von einem Programmierer eigentlich erwarten kann, dass er in der Lage ist, solche Fehlermeldungen zu <em>verstehen</em>, in sinnvolle Bestandteile zu zerlegen und selbst auf die Ursache zu kommen.</p>
<p>In deinem Fall hätte es ausgereicht, in die Dokumentation zu setw zu schauen, oder auch nur auf der Seite, auf die du selbst verwiesen hast, etwas genauer nachzusehen. Da steht's nämlich auch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1254651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1254651</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 28 Mar 2007 13:49:33 GMT</pubDate></item><item><title><![CDATA[Reply to setw() in cout? on Wed, 28 Mar 2007 14:33:39 GMT]]></title><description><![CDATA[<p>Ich habe ja den Fehler verstanden. Es fehlt ein Header. Normalerweise reicht es ja die Fehlermeldung einfach bei Google einzugeben und man bekommt Lösungsvorschläge was man noch einbinden muß. In 1-2 Wochen wird dieser Beitrag in Google aufgenommen sein und so alle die nach mir kommen glücklich machen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1254695</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1254695</guid><dc:creator><![CDATA[C++ Anfänger 2]]></dc:creator><pubDate>Wed, 28 Mar 2007 14:33:39 GMT</pubDate></item><item><title><![CDATA[Reply to setw() in cout? on Wed, 28 Mar 2007 15:53:53 GMT]]></title><description><![CDATA[<p>loeschen geht nicht, also diesen beitrag einfach wegdenken!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1254777</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1254777</guid><dc:creator><![CDATA[LMwoot]]></dc:creator><pubDate>Wed, 28 Mar 2007 15:53:53 GMT</pubDate></item></channel></rss>