<?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[String - Alle Möglichen Kombinationen der Buchstaben]]></title><description><![CDATA[<p>Ich habe einen String mit dem Wert &quot;abc&quot;. Wie kann ich die Buchstaben nun so vertauschen, dass alle möglichen Kombinationen einmal existieren. Sozusagen &quot;abc&quot;, &quot;acb&quot;, &quot;bac&quot;, bca&quot;, &quot;cab&quot;, &quot;cba&quot;? Bin auf die Funktion std::shuffle gestoßen, diese tauscht die Buchstaben aber zufällig...</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/316549/string-alle-möglichen-kombinationen-der-buchstaben</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 19:41:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/316549.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 May 2013 19:23:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String - Alle Möglichen Kombinationen der Buchstaben on Tue, 07 May 2013 19:23:57 GMT]]></title><description><![CDATA[<p>Ich habe einen String mit dem Wert &quot;abc&quot;. Wie kann ich die Buchstaben nun so vertauschen, dass alle möglichen Kombinationen einmal existieren. Sozusagen &quot;abc&quot;, &quot;acb&quot;, &quot;bac&quot;, bca&quot;, &quot;cab&quot;, &quot;cba&quot;? Bin auf die Funktion std::shuffle gestoßen, diese tauscht die Buchstaben aber zufällig...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2321804</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2321804</guid><dc:creator><![CDATA[stringmann]]></dc:creator><pubDate>Tue, 07 May 2013 19:23:57 GMT</pubDate></item><item><title><![CDATA[Reply to String - Alle Möglichen Kombinationen der Buchstaben on Tue, 07 May 2013 19:26:32 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;algorithm&gt;
#include &lt;string&gt;
#include &lt;iostream&gt;

int main()
{
    std::string s = &quot;abc&quot;;
    do std::cout &lt;&lt; s &lt;&lt; '\n';
    while(std::next_permutation(s.begin(), s.end()));
}
</code></pre>
<p>liefert</p>
<pre><code>abc
acb
bac
bca
cab
cba
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2321806</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2321806</guid><dc:creator><![CDATA[permutt]]></dc:creator><pubDate>Tue, 07 May 2013 19:26:32 GMT</pubDate></item><item><title><![CDATA[Reply to String - Alle Möglichen Kombinationen der Buchstaben on Tue, 07 May 2013 19:36:44 GMT]]></title><description><![CDATA[<p>Vielen Dank, genau das habe ich gesucht! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2321810</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2321810</guid><dc:creator><![CDATA[stringmann]]></dc:creator><pubDate>Tue, 07 May 2013 19:36:44 GMT</pubDate></item></channel></rss>