<?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[vectoren fehlende menge]]></title><description><![CDATA[<p>hi!</p>
<p>ich habe 3 vektoren mit unsigned short werten.</p>
<p>in einem vektor speicher ich alle zahlen von 0-31.<br />
im zweiten eine random auswahl von 10 zahlen.<br />
wie kann ich im dritten vektor die fehlenden 22 zahlen ermitteln? Weiss nicht wie das mathematisch heisst, aber ist auf jeden fall die fehlende menge.</p>
<pre><code class="language-cpp">for (unsigned short p=0; p &lt; 32; p++)
	{
		if  (!auswahl[p])
			drittenvektor.push_back(p);
	}
</code></pre>
<p>danke fuer eure tipps!<br />
lg,<br />
alex</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/165223/vectoren-fehlende-menge</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 05:43:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/165223.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Nov 2006 17:09:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to vectoren fehlende menge on Thu, 16 Nov 2006 17:09:35 GMT]]></title><description><![CDATA[<p>hi!</p>
<p>ich habe 3 vektoren mit unsigned short werten.</p>
<p>in einem vektor speicher ich alle zahlen von 0-31.<br />
im zweiten eine random auswahl von 10 zahlen.<br />
wie kann ich im dritten vektor die fehlenden 22 zahlen ermitteln? Weiss nicht wie das mathematisch heisst, aber ist auf jeden fall die fehlende menge.</p>
<pre><code class="language-cpp">for (unsigned short p=0; p &lt; 32; p++)
	{
		if  (!auswahl[p])
			drittenvektor.push_back(p);
	}
</code></pre>
<p>danke fuer eure tipps!<br />
lg,<br />
alex</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1176108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1176108</guid><dc:creator><![CDATA[KITT22]]></dc:creator><pubDate>Thu, 16 Nov 2006 17:09:35 GMT</pubDate></item><item><title><![CDATA[Reply to vectoren fehlende menge on Thu, 16 Nov 2006 17:27:45 GMT]]></title><description><![CDATA[<p>Du hast eine Menge A = { 0,2,3,...,31 } und eine Menge B = {zufällig 10Zahlen von A} und willst C = A\B, richtig?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1176116</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1176116</guid><dc:creator><![CDATA[User--]]></dc:creator><pubDate>Thu, 16 Nov 2006 17:27:45 GMT</pubDate></item><item><title><![CDATA[Reply to vectoren fehlende menge on Thu, 16 Nov 2006 22:47:25 GMT]]></title><description><![CDATA[<p><a href="http://www.sgi.com/tech/stl/set_difference.html" rel="nofollow">www.sgi.com/tech/stl/set_difference.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1176202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1176202</guid><dc:creator><![CDATA[finix]]></dc:creator><pubDate>Thu, 16 Nov 2006 22:47:25 GMT</pubDate></item></channel></rss>