<?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[Struktur in Klasse]]></title><description><![CDATA[<pre><code class="language-cpp">class myClass
{
public:
    void DoSomething();
private:
    struct myStructure
    {
       int xyz;
    };
    myStructure* objMyStructure;
};
</code></pre>
<p>Soll ich die Struktur in der Klassendeklaration definieren?<br />
Ich will weiters auch ein typedef machen, nur bekomme ich es nicht hin.</p>
<p>Kann mir jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/268474/struktur-in-klasse</link><generator>RSS for Node</generator><lastBuildDate>Tue, 01 Sep 2026 21:04:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/268474.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 09 Jun 2010 16:26:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Struktur in Klasse on Wed, 09 Jun 2010 16:26:54 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">class myClass
{
public:
    void DoSomething();
private:
    struct myStructure
    {
       int xyz;
    };
    myStructure* objMyStructure;
};
</code></pre>
<p>Soll ich die Struktur in der Klassendeklaration definieren?<br />
Ich will weiters auch ein typedef machen, nur bekomme ich es nicht hin.</p>
<p>Kann mir jemand helfen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909601</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909601</guid><dc:creator><![CDATA[helpie]]></dc:creator><pubDate>Wed, 09 Jun 2010 16:26:54 GMT</pubDate></item><item><title><![CDATA[Reply to Struktur in Klasse on Wed, 09 Jun 2010 16:30:25 GMT]]></title><description><![CDATA[<p>helpie schrieb:</p>
<blockquote>
<p>Soll ich die Struktur in der Klassendeklaration definieren?</p>
</blockquote>
<p>Das ist die Klassen<strong>definition</strong>. Ob du das tun sollst, hängt von verschiedenen Faktoren ab.</p>
<p>helpie schrieb:</p>
<blockquote>
<p>Ich will weiters auch ein typedef machen, nur bekomme ich es nicht hin.</p>
</blockquote>
<p>Wo willst du das <code>typedef</code> ? Falls in der Klasse, warum zwei Namen für den gleichen Typ? Falls ausserhalb, warum die Struktur privat machen und dann trotzdem ausserhalb einsetzen wollen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909604</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909604</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Wed, 09 Jun 2010 16:30:25 GMT</pubDate></item><item><title><![CDATA[Reply to Struktur in Klasse on Wed, 09 Jun 2010 16:31:12 GMT]]></title><description><![CDATA[<p>helpie schrieb:</p>
<blockquote>
<p>Soll ich die Struktur in der Klassendeklaration definieren?</p>
</blockquote>
<p>Kannst dir aussuchen, wo du die struct definierst - genaugenommen kannst du dir so gar schon aussuchen, wo du sie deklarierst:</p>
<pre><code class="language-cpp">struct outer
{
 struct inner;

 int m;
};

struct outer::inner
{
  int i;
};
</code></pre>
<p>geht auch.</p>
<blockquote>
<p>Ich will weiters auch ein typedef machen, nur bekomme ich es nicht hin.</p>
</blockquote>
<p>wo liegt denn das problem? zeig mal deinen versuch - da gibts eigtl nicht so viel falsch zu machen ;o)</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1909605</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1909605</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Wed, 09 Jun 2010 16:31:12 GMT</pubDate></item></channel></rss>