<?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[wchar_t[] ausgeben]]></title><description><![CDATA[<p>Wie gibt man alle Teile eines wchar_t arraies aus?</p>
<p>Beim normalen char ist es ja einfach:</p>
<pre><code class="language-cpp">char hallo[20] = &quot;Hallo Welt&quot;;
for(int i = 0; i &lt; strlen(hallo); ++i)
{
    cout &lt;&lt; hallo[i];
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/274451/wchar_t-ausgeben</link><generator>RSS for Node</generator><lastBuildDate>Thu, 27 Aug 2026 14:10:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/274451.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Sep 2010 15:16:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to wchar_t[] ausgeben on Sun, 26 Sep 2010 15:16:11 GMT]]></title><description><![CDATA[<p>Wie gibt man alle Teile eines wchar_t arraies aus?</p>
<p>Beim normalen char ist es ja einfach:</p>
<pre><code class="language-cpp">char hallo[20] = &quot;Hallo Welt&quot;;
for(int i = 0; i &lt; strlen(hallo); ++i)
{
    cout &lt;&lt; hallo[i];
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1957704</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1957704</guid><dc:creator><![CDATA[ABC_123]]></dc:creator><pubDate>Sun, 26 Sep 2010 15:16:11 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t[] ausgeben on Sun, 26 Sep 2010 15:24:13 GMT]]></title><description><![CDATA[<p>Mit wcout.<br />
Also so:</p>
<pre><code class="language-cpp">wchar_t* hallo = &quot;Hallo Welt!&quot;;
std::wcout &lt;&lt; hallo &lt;&lt; std::endl;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1957707</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1957707</guid><dc:creator><![CDATA[Pikkolini]]></dc:creator><pubDate>Sun, 26 Sep 2010 15:24:13 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t[] ausgeben on Sun, 26 Sep 2010 15:25:17 GMT]]></title><description><![CDATA[<p>Wie kriegt man es mit der for Schleife hin?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1957709</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1957709</guid><dc:creator><![CDATA[ABC_123]]></dc:creator><pubDate>Sun, 26 Sep 2010 15:25:17 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t[] ausgeben on Sun, 26 Sep 2010 15:29:53 GMT]]></title><description><![CDATA[<p>Pikkolini schrieb:</p>
<blockquote>
<p>Mit wcout.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1957711</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1957711</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Sun, 26 Sep 2010 15:29:53 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t[] ausgeben on Sun, 26 Sep 2010 15:32:11 GMT]]></title><description><![CDATA[<p>Nimm lieber Strings.<br />
Mit wstrings sollte es dann so aussehen:</p>
<pre><code class="language-cpp">std::wstring hallo = &quot;Hallo Welt!&quot;;
for (int i = 0; i &lt; hallo.length(); ++i) {
    std::wcout &lt;&lt; hallo[i] &lt;&lt; std::endl;
}
</code></pre>
<p>Aber wieso möchtest du überhaupt eine Schleife haben? In deinem Beispiel zumindestens macht das kein Sinn.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1957713</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1957713</guid><dc:creator><![CDATA[Pikkolini]]></dc:creator><pubDate>Sun, 26 Sep 2010 15:32:11 GMT</pubDate></item><item><title><![CDATA[Reply to wchar_t[] ausgeben on Sun, 26 Sep 2010 19:11:57 GMT]]></title><description><![CDATA[<p>Für Widechar String Literale wird noch das führende <strong>L</strong> benötigt.</p>
<p>Bsp:</p>
<pre><code class="language-cpp">const wchar_t* str1 = L&quot;test1&quot;;
std::wstring str2 = L&quot;test2&quot;;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1957795</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1957795</guid><dc:creator><![CDATA[theta]]></dc:creator><pubDate>Sun, 26 Sep 2010 19:11:57 GMT</pubDate></item></channel></rss>