<?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[vector übergeben]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich einen vector einer funktion übergeben? bzw. wie komm ich in einer funktion an meinen vector?</p>
<p>also mal ein beispiel:</p>
<pre><code class="language-cpp">int test[10];

void meinefunktion(int *feld)
{

}
</code></pre>
<p>so komm ich ja über den zeiger an mein feld test.</p>
<p>wie sieht das nu bei vector aus?</p>
<pre><code class="language-cpp">std::vector&lt;int&gt; test;

void meinefunktion(???? feld)
{
}
</code></pre>
<p>Danke schonmal</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/209762/vector-übergeben</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 14:40:49 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/209762.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Apr 2008 07:39:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to vector übergeben on Thu, 03 Apr 2008 07:39:21 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie kann ich einen vector einer funktion übergeben? bzw. wie komm ich in einer funktion an meinen vector?</p>
<p>also mal ein beispiel:</p>
<pre><code class="language-cpp">int test[10];

void meinefunktion(int *feld)
{

}
</code></pre>
<p>so komm ich ja über den zeiger an mein feld test.</p>
<p>wie sieht das nu bei vector aus?</p>
<pre><code class="language-cpp">std::vector&lt;int&gt; test;

void meinefunktion(???? feld)
{
}
</code></pre>
<p>Danke schonmal</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485632</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485632</guid><dc:creator><![CDATA[JBOpael]]></dc:creator><pubDate>Thu, 03 Apr 2008 07:39:21 GMT</pubDate></item><item><title><![CDATA[Reply to vector übergeben on Thu, 03 Apr 2008 07:43:32 GMT]]></title><description><![CDATA[<p>wahrscheinlich so:</p>
<pre><code class="language-cpp">std::vector&lt;int&gt; test;
void meinefunktion(std::vector&lt;int&gt; &amp;feld)
{
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1485634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485634</guid><dc:creator><![CDATA[Linnea]]></dc:creator><pubDate>Thu, 03 Apr 2008 07:43:32 GMT</pubDate></item><item><title><![CDATA[Reply to vector übergeben on Thu, 03 Apr 2008 09:09:47 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/11004">@JBOpael</a><br />
Lese mal was über Referenzen.<br />
<a href="http://tutorial.schornboeck.net/referenzen.htm" rel="nofollow">http://tutorial.schornboeck.net/referenzen.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1485663</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1485663</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 03 Apr 2008 09:09:47 GMT</pubDate></item></channel></rss>