<?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[Array verpacken]]></title><description><![CDATA[<p>Hallo,<br />
ich wollte ein Array als Return-Wert einer Methode übergeben. Kurz gesagt:</p>
<pre><code class="language-cpp">funktion() 
{
int blabla[10;]
...
return blabla;
}

void main()
{
 int  blub[10];
 blub = funktion();
}
</code></pre>
<p>Soweit ich aber weiss, ist ein Array kein Rückgabewert für eine Methode.</p>
<p>Wie kann ich dann das Array zurückgeben?<br />
Eigentlich eine Lapalie, aber ich musste es noch nie anwenden!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162201/array-verpacken</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 18:09:24 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162201.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Oct 2006 09:48:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Array verpacken on Mon, 16 Oct 2006 09:48:58 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich wollte ein Array als Return-Wert einer Methode übergeben. Kurz gesagt:</p>
<pre><code class="language-cpp">funktion() 
{
int blabla[10;]
...
return blabla;
}

void main()
{
 int  blub[10];
 blub = funktion();
}
</code></pre>
<p>Soweit ich aber weiss, ist ein Array kein Rückgabewert für eine Methode.</p>
<p>Wie kann ich dann das Array zurückgeben?<br />
Eigentlich eine Lapalie, aber ich musste es noch nie anwenden!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155549</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155549</guid><dc:creator><![CDATA[The Translator]]></dc:creator><pubDate>Mon, 16 Oct 2006 09:48:58 GMT</pubDate></item><item><title><![CDATA[Reply to Array verpacken on Mon, 16 Oct 2006 10:00:35 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>das hat nichts mit dem Builder im speziellen zu tun, sondern gehört ins C oder C++ Forum.</p>
<p>Zm Thema : Einfach als Parameter by-reference übergeben</p>
<pre><code class="language-cpp">void funktion(int *array, int count)
{
  // mit para arbeiten, Änderungen werden direkt auf Original ausgeführt
}

void main()
{
 int  blub[10];
 funktion(blub, 10);
}
</code></pre>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155559</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155559</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Mon, 16 Oct 2006 10:00:35 GMT</pubDate></item><item><title><![CDATA[Reply to Array verpacken on Mon, 16 Oct 2006 10:15:03 GMT]]></title><description><![CDATA[<p>Genau, warum fällt mir das nicht ein.<br />
Ganz klar, danke dir. War ja eine sehr dumme frage von mir.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155572</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155572</guid><dc:creator><![CDATA[The Translator]]></dc:creator><pubDate>Mon, 16 Oct 2006 10:15:03 GMT</pubDate></item></channel></rss>