<?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[Kleine Verständnisfrage]]></title><description><![CDATA[<p>Gegeben sei eine Klasse Matrix&lt;T&gt;.<br />
Folgender Code bereitet Probleme (bei der Ausführung):</p>
<pre><code class="language-cpp">void testBayReg(int system) {
	Matrix &lt;double&gt; matA = Matrix &lt;double&gt; (0,0);
	matA = Matrix &lt;double&gt; (30, 5);
	//[...]
</code></pre>
<p>Wenn ich mit Pointern arbeite, funktioniert alles wunderbar.</p>
<pre><code class="language-cpp">void testBayReg(int system) {
	Matrix &lt;double&gt; *matA = new Matrix &lt;double&gt; (0,0);
	delete matA;
	matA = new Matrix &lt;double&gt; (30, 5);
	//[...]
</code></pre>
<p>Woran liegt das genau?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/300245/kleine-verständnisfrage</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 22:00:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/300245.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Feb 2012 15:48:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kleine Verständnisfrage on Tue, 28 Feb 2012 15:56:21 GMT]]></title><description><![CDATA[<p>Gegeben sei eine Klasse Matrix&lt;T&gt;.<br />
Folgender Code bereitet Probleme (bei der Ausführung):</p>
<pre><code class="language-cpp">void testBayReg(int system) {
	Matrix &lt;double&gt; matA = Matrix &lt;double&gt; (0,0);
	matA = Matrix &lt;double&gt; (30, 5);
	//[...]
</code></pre>
<p>Wenn ich mit Pointern arbeite, funktioniert alles wunderbar.</p>
<pre><code class="language-cpp">void testBayReg(int system) {
	Matrix &lt;double&gt; *matA = new Matrix &lt;double&gt; (0,0);
	delete matA;
	matA = new Matrix &lt;double&gt; (30, 5);
	//[...]
</code></pre>
<p>Woran liegt das genau?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2186662</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2186662</guid><dc:creator><![CDATA[Ramanujan]]></dc:creator><pubDate>Tue, 28 Feb 2012 15:56:21 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Verständnisfrage on Tue, 28 Feb 2012 15:55:45 GMT]]></title><description><![CDATA[<p>Ramanujan schrieb:</p>
<blockquote>
<p>Woran liegt das genau?</p>
</blockquote>
<p>Woran liegt was? Du hast nicht mal dein Problem beschrieben.</p>
<p>..</p>
<p>Moment, meine Glaskugel ruft gerade an. Sie meint es wäre zwar noch etwas vernebelt, aber sie meint erkennen zu können, dass du keinen operator = für deine Matrix geschrieben hast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2186665</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2186665</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Tue, 28 Feb 2012 15:55:45 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Verständnisfrage on Tue, 28 Feb 2012 17:40:07 GMT]]></title><description><![CDATA[<p>edit: unpassend</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2186667</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2186667</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 28 Feb 2012 17:40:07 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Verständnisfrage on Tue, 28 Feb 2012 15:58:32 GMT]]></title><description><![CDATA[<p>cooky451 schrieb:</p>
<blockquote>
<p>aber sie meint erkennen zu können, dass du keinen operator = für deine Matrix geschrieben hast.</p>
</blockquote>
<p>thx^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2186672</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2186672</guid><dc:creator><![CDATA[Ramanujan]]></dc:creator><pubDate>Tue, 28 Feb 2012 15:58:32 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Verständnisfrage on Tue, 28 Feb 2012 16:13:48 GMT]]></title><description><![CDATA[<p>Ramanujan schrieb:</p>
<blockquote>
<p>thx^^</p>
</blockquote>
<p>Ich habe gerade einen Tee getrunken und aus den Blättchen am Grund der Tasse konnte ich sehen, dass du auch keinen Kopierkonstruktor geschrieben hast.</p>
<p>~(Man darf dies als Steilvorlage ansehen, noch einen dritten Beitrag dieser Art zu verfassen)~</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2186684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2186684</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 28 Feb 2012 16:13:48 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Verständnisfrage on Tue, 28 Feb 2012 16:18:04 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>~(Man darf dies als Steilvorlage ansehen, noch einen dritten Beitrag dieser Art zu verfassen)~</p>
</blockquote>
<p>wieso? der delete-Aufruf gibt doch keine Fehlermeldung aus *duckundweg*</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2186687</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2186687</guid><dc:creator><![CDATA[daddy_felix]]></dc:creator><pubDate>Tue, 28 Feb 2012 16:18:04 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Verständnisfrage on Tue, 28 Feb 2012 16:19:35 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Ich habe gerade einen Tee getrunken und aus den Blättchen am Grund der Tasse konnte ich sehen, dass du auch keinen Kopierkonstruktor geschrieben hast.</p>
</blockquote>
<p>Doch, den hatte ich schon.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2186690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2186690</guid><dc:creator><![CDATA[Ramanujan]]></dc:creator><pubDate>Tue, 28 Feb 2012 16:19:35 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Verständnisfrage on Tue, 28 Feb 2012 16:24:57 GMT]]></title><description><![CDATA[<p>Hallo SeppJ,</p>
<p>vllt. solltest du ihm gleich dann das passende Stichwort <a href="http://de.wikipedia.org/wiki/Regel_der_Gro%C3%9Fen_Drei" rel="nofollow">Regel der großen Drei</a> geben <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";-)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2186692</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2186692</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Tue, 28 Feb 2012 16:24:57 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Verständnisfrage on Tue, 28 Feb 2012 16:28:46 GMT]]></title><description><![CDATA[<p>Die hab ich auch gerade schon gefunden, als ich nachgeguckt hab, welche Signatur der operator= hat.</p>
<p>Aber trotzdem danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2186693</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2186693</guid><dc:creator><![CDATA[Ramanujan]]></dc:creator><pubDate>Tue, 28 Feb 2012 16:28:46 GMT</pubDate></item><item><title><![CDATA[Reply to Kleine Verständnisfrage on Tue, 28 Feb 2012 16:28:28 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>Ich habe gerade einen Tee getrunken und aus den Blättchen am Grund der Tasse konnte ich sehen, dass du auch keinen Kopierkonstruktor geschrieben hast.</p>
</blockquote>
<p>Tja SeppJ, vielleicht solltest du wieder zu Glaskugeln wechseln, die erweisen sich momentan wirklich als erstaunlich zuverlässig. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
<pre><code class="language-cpp">Matrix &lt;double&gt; matA = Matrix &lt;double&gt; (0,0);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2186696</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2186696</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Tue, 28 Feb 2012 16:28:28 GMT</pubDate></item></channel></rss>