<?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[Klassen als array in Klasse definieren]]></title><description><![CDATA[<p>Grüß Euch,</p>
<p>vermutlich gibts für mein Problem eine simple Antwort, mein compiler hat nur eine Fehlermeldung für mich über.</p>
<p>Ich möchte ein Array einer Klasse in einer anderen Klasse verwenden, hatte mal ganz einfach an folgendes gedacht:</p>
<pre><code>class B;

class A {
   B x[8];
};

class B {
   // ...
};
</code></pre>
<p>Das funktioniert aber scheinbar nicht, könnt Ihr mir helfen?</p>
<p>danke,<br />
kottan</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/323665/klassen-als-array-in-klasse-definieren</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 20:04:07 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/323665.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 09 Feb 2014 16:24:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Klassen als array in Klasse definieren on Sun, 09 Feb 2014 16:24:08 GMT]]></title><description><![CDATA[<p>Grüß Euch,</p>
<p>vermutlich gibts für mein Problem eine simple Antwort, mein compiler hat nur eine Fehlermeldung für mich über.</p>
<p>Ich möchte ein Array einer Klasse in einer anderen Klasse verwenden, hatte mal ganz einfach an folgendes gedacht:</p>
<pre><code>class B;

class A {
   B x[8];
};

class B {
   // ...
};
</code></pre>
<p>Das funktioniert aber scheinbar nicht, könnt Ihr mir helfen?</p>
<p>danke,<br />
kottan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382378</guid><dc:creator><![CDATA[kottan]]></dc:creator><pubDate>Sun, 09 Feb 2014 16:24:08 GMT</pubDate></item><item><title><![CDATA[Reply to Klassen als array in Klasse definieren on Sun, 09 Feb 2014 16:26:21 GMT]]></title><description><![CDATA[<p>Der Compiler muss wisssen wie groß B ist, dafür muss die Definition von B aber vor a stattgefunden haben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382379</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382379</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Sun, 09 Feb 2014 16:26:21 GMT</pubDate></item><item><title><![CDATA[Reply to Klassen als array in Klasse definieren on Sun, 09 Feb 2014 16:27:16 GMT]]></title><description><![CDATA[<p>definition von B sollte geschehen bevor du B in klassen benutzt usw.</p>
<p>allgemein ist es hilfreich wenn du die fehlermeldungen des compilers hinschreibst. hier ist es zwar noch offensichtlich aber nur so fürs nächste mal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382380</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382380</guid><dc:creator><![CDATA[Fytch]]></dc:creator><pubDate>Sun, 09 Feb 2014 16:27:16 GMT</pubDate></item><item><title><![CDATA[Reply to Klassen als array in Klasse definieren on Sun, 09 Feb 2014 16:29:36 GMT]]></title><description><![CDATA[<p>so einfach kanns sein.</p>
<p>stimmt in der Tat, vielen Dank für Eure prompte Unterstützung.</p>
<p>kottan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2382382</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2382382</guid><dc:creator><![CDATA[kottan]]></dc:creator><pubDate>Sun, 09 Feb 2014 16:29:36 GMT</pubDate></item></channel></rss>