<?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[Logik-algorithmus .. aber wie codet man es ??]]></title><description><![CDATA[<p>Definiere für folgende Klasse einen Konstruktor, der das Objekt Vektor mit der Wertefolge 0,1,-1,2,-2,3,-3,.. belegt.<br />
class CVektor{int N, int *z; public: ...};</p>
<p>also n =0 n+1 n-2 n+3 n-4 n+-1 .. aber wie soll man das programmieren ???</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/161062/logik-algorithmus-aber-wie-codet-man-es</link><generator>RSS for Node</generator><lastBuildDate>Fri, 11 Sep 2026 17:26:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/161062.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Oct 2006 19:37:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Logik-algorithmus .. aber wie codet man es ?? on Mon, 02 Oct 2006 19:37:28 GMT]]></title><description><![CDATA[<p>Definiere für folgende Klasse einen Konstruktor, der das Objekt Vektor mit der Wertefolge 0,1,-1,2,-2,3,-3,.. belegt.<br />
class CVektor{int N, int *z; public: ...};</p>
<p>also n =0 n+1 n-2 n+3 n-4 n+-1 .. aber wie soll man das programmieren ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148335</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148335</guid><dc:creator><![CDATA[Eddie123]]></dc:creator><pubDate>Mon, 02 Oct 2006 19:37:28 GMT</pubDate></item><item><title><![CDATA[Reply to Logik-algorithmus .. aber wie codet man es ?? on Mon, 02 Oct 2006 20:46:45 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">class CVector
{
	std::vector&lt;int&gt; vec;
	int upper_bound;
public:
	CVector(int n=0):upper_bound(n)
	{
		vec.push_back(0);
		for(int i=1;i&lt;=upper_bound;++i)
		{
			vec.push_back(i);
			vec.push_back(i-(2*i));
			//oder ganz einfach
			//vec.push_back(i*-1);
		}
	}
.....
</code></pre>
<p>Gruss Spacelord</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148384</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148384</guid><dc:creator><![CDATA[Spacelord]]></dc:creator><pubDate>Mon, 02 Oct 2006 20:46:45 GMT</pubDate></item><item><title><![CDATA[Reply to Logik-algorithmus .. aber wie codet man es ?? on Tue, 03 Oct 2006 04:55:30 GMT]]></title><description><![CDATA[<p>Spacelord schrieb:</p>
<blockquote>
<p>vec.push_back(i-(2<em>i));<br />
//oder ganz einfach<br />
//vec.push_back(i</em>-1);</p>
</blockquote>
<p>Oder ganz ganz ganz einfach: vec.push_back(-i);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1148445</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1148445</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Tue, 03 Oct 2006 04:55:30 GMT</pubDate></item></channel></rss>