<?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[Set container auffuellen]]></title><description><![CDATA[<p>Wie waere der code um einen set container mit ints aufzufuellen? Das muss irgendwie ne for loop sein mit random. Random deshalb weil ich ein balanced set brauche. Ich hab das hier mal irgendwo gesehn, kanns aber nich mehr finden.</p>
<p>Daniel</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/138738/set-container-auffuellen</link><generator>RSS for Node</generator><lastBuildDate>Sun, 30 Aug 2026 06:17:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/138738.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Feb 2006 19:37:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Set container auffuellen on Tue, 28 Feb 2006 19:37:36 GMT]]></title><description><![CDATA[<p>Wie waere der code um einen set container mit ints aufzufuellen? Das muss irgendwie ne for loop sein mit random. Random deshalb weil ich ein balanced set brauche. Ich hab das hier mal irgendwo gesehn, kanns aber nich mehr finden.</p>
<p>Daniel</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1005425</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1005425</guid><dc:creator><![CDATA[Endurance]]></dc:creator><pubDate>Tue, 28 Feb 2006 19:37:36 GMT</pubDate></item><item><title><![CDATA[Reply to Set container auffuellen on Tue, 28 Feb 2006 19:42:09 GMT]]></title><description><![CDATA[<p>wuerde das so aussehen?</p>
<pre><code class="language-cpp">for (x=0; x&lt;50; ++x)
{ y = rand( ) % 100; s.insert(y); }
</code></pre>
<p>und wie waer dann die Funktion um N random Elemente zu suchen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1005431</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1005431</guid><dc:creator><![CDATA[Endurance]]></dc:creator><pubDate>Tue, 28 Feb 2006 19:42:09 GMT</pubDate></item><item><title><![CDATA[Reply to Set container auffuellen on Wed, 01 Mar 2006 08:58:16 GMT]]></title><description><![CDATA[<p>Was meinst du mit &quot;balanced set&quot;? Eine standard-konforme Set-Implementation wird dir auf jeden Fall einen balancierten Baum aufbauen, egal in welcher Reihenfolge du die Elemente einfügst.</p>
<p>@Suche: mit set::find() kannst du feststellen, ob ein Wert schon in der Menge enthalten ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1005706</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1005706</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 01 Mar 2006 08:58:16 GMT</pubDate></item></channel></rss>