<?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[arrey an funktion übergeben.]]></title><description><![CDATA[<p>Hallo an alle.<br />
Ich habe folgendes Problemm.<br />
In main() habe ich eine Arrey char matrix[20][40]; Ich habe auch eine Funktion<br />
void fill(). Meine Frage ist die: wie kann ich matrix[20][40] an funktion fill übergeben, so das ich z.b matrix [1][29] veränder kann das man in main veränderte werte bekommt.<br />
Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/293604/arrey-an-funktion-übergeben</link><generator>RSS for Node</generator><lastBuildDate>Sun, 16 Aug 2026 06:41:20 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/293604.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Oct 2011 18:43:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to arrey an funktion übergeben. on Thu, 06 Oct 2011 18:43:33 GMT]]></title><description><![CDATA[<p>Hallo an alle.<br />
Ich habe folgendes Problemm.<br />
In main() habe ich eine Arrey char matrix[20][40]; Ich habe auch eine Funktion<br />
void fill(). Meine Frage ist die: wie kann ich matrix[20][40] an funktion fill übergeben, so das ich z.b matrix [1][29] veränder kann das man in main veränderte werte bekommt.<br />
Danke.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2128187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128187</guid><dc:creator><![CDATA[runix81]]></dc:creator><pubDate>Thu, 06 Oct 2011 18:43:33 GMT</pubDate></item><item><title><![CDATA[Reply to arrey an funktion übergeben. on Thu, 06 Oct 2011 18:51:41 GMT]]></title><description><![CDATA[<p>Käme es in Frage, dein Programm mit vectoren und Klassen oder std::array umzuschreiben? Das würde alles erheblich vereinfachen.</p>
<p>Ansonsten:<br />
void fill(char *matrix[40]);</p>
<p>Und fill klingt übrigens so, als würdest du die Standardbibliothek nachprogrammieren...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2128191</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128191</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 06 Oct 2011 18:51:41 GMT</pubDate></item><item><title><![CDATA[Reply to arrey an funktion übergeben. on Thu, 06 Oct 2011 18:52:01 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/212469" rel="nofollow">http://www.c-plusplus.net/forum/212469</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2128192</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128192</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Thu, 06 Oct 2011 18:52:01 GMT</pubDate></item><item><title><![CDATA[Reply to arrey an funktion übergeben. on Thu, 06 Oct 2011 18:53:12 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void fill(char matrix[][40])
{
    matrix[1][29] = 'A'
}

int main()
{
    char matrix[20][40];
    fill(matrix);
}
</code></pre>
<p>Hat aber nichts mit C++ zu tun, in C++ gibt es meist bessere Mittel.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2128193</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128193</guid><dc:creator><![CDATA[wxSkip]]></dc:creator><pubDate>Thu, 06 Oct 2011 18:53:12 GMT</pubDate></item><item><title><![CDATA[Reply to arrey an funktion übergeben. on Thu, 06 Oct 2011 19:16:10 GMT]]></title><description><![CDATA[<p>leider bin ich nicht so weit mit vector und klassen zu programmieren.Klassen habe ich seit kerze zeit angefangen zu lernen.</p>
<p>Danke an alle.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2128195</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128195</guid><dc:creator><![CDATA[runix81]]></dc:creator><pubDate>Thu, 06 Oct 2011 19:16:10 GMT</pubDate></item><item><title><![CDATA[Reply to arrey an funktion übergeben. on Thu, 06 Oct 2011 19:21:35 GMT]]></title><description><![CDATA[<p>runix81 schrieb:</p>
<blockquote>
<p>leider bin ich nicht so weit mit vector und klassen zu programmieren.Klassen habe ich seit kerze zeit angefangen zu lernen.</p>
<p>Danke an alle.</p>
</blockquote>
<p>Dann ist eigentlich ein guter Zeitpunkt, das Lehrbuch zu hinterfragen, welches dir gleich am Anfang Arrays, noch dazu mehrdimansionale, beibringt, bevor du die weitaus wichtigeren (und im Grunde einfacheren) Sachen beigebracht bekommst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2128196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2128196</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 06 Oct 2011 19:21:35 GMT</pubDate></item></channel></rss>