<?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[zeiger und funktionen (mal wieder)]]></title><description><![CDATA[<p>hallo,<br />
ich stell mich mal wieder dumm an.</p>
<p>ich habe ein array und eine variable, die ich mit new erzeugt habe:</p>
<p>z.b.<br />
int *test = new int[3];<br />
int *test2 = new int;</p>
<p>und eine funktion</p>
<p>in der art:</p>
<p>void blah(int *p)<br />
{<br />
test[0] = p;<br />
};</p>
<p>ich möchte, dass test[0] auf test2 zeigt.</p>
<p>wo liegt mein fehler ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/163437/zeiger-und-funktionen-mal-wieder</link><generator>RSS for Node</generator><lastBuildDate>Sun, 13 Sep 2026 00:23:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/163437.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 29 Oct 2006 16:51:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to zeiger und funktionen (mal wieder) on Sun, 29 Oct 2006 16:51:48 GMT]]></title><description><![CDATA[<p>hallo,<br />
ich stell mich mal wieder dumm an.</p>
<p>ich habe ein array und eine variable, die ich mit new erzeugt habe:</p>
<p>z.b.<br />
int *test = new int[3];<br />
int *test2 = new int;</p>
<p>und eine funktion</p>
<p>in der art:</p>
<p>void blah(int *p)<br />
{<br />
test[0] = p;<br />
};</p>
<p>ich möchte, dass test[0] auf test2 zeigt.</p>
<p>wo liegt mein fehler ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163876</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163876</guid><dc:creator><![CDATA[RML]]></dc:creator><pubDate>Sun, 29 Oct 2006 16:51:48 GMT</pubDate></item><item><title><![CDATA[Reply to zeiger und funktionen (mal wieder) on Sun, 29 Oct 2006 17:01:49 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">int** test = new int*[3];
// oder besser noch:
std::vector&lt;int*&gt; test(3);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1163886</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163886</guid><dc:creator><![CDATA[finix]]></dc:creator><pubDate>Sun, 29 Oct 2006 17:01:49 GMT</pubDate></item><item><title><![CDATA[Reply to zeiger und funktionen (mal wieder) on Sun, 29 Oct 2006 17:12:25 GMT]]></title><description><![CDATA[<p>danke, klappt <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1163892</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1163892</guid><dc:creator><![CDATA[RML]]></dc:creator><pubDate>Sun, 29 Oct 2006 17:12:25 GMT</pubDate></item></channel></rss>