<?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[ENUM Struckt Datentyp  (Dringend !)]]></title><description><![CDATA[<p>Hallo bitte kann mir jeman helfen?</p>
<p>Ich habe folgendes problem</p>
<pre><code>enum MultiTypeType
    {
      Integer,
      Double,
      Character,
      Boolean
    };

    struct MultiType
    {
      MultiTypeType type;
      union
      {
        int Integer;
        double Double;
        char Character;
        bool Boolean;
      }
    };
</code></pre>
<p>Anstelle des char Character hätte ich gerne einen String aber wie mache ich das ?</p>
<p>Vielen Dank für eure Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/172403/enum-struckt-datentyp-dringend</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 18:44:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/172403.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 04 Feb 2007 19:10:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ENUM Struckt Datentyp  (Dringend !) on Sun, 04 Feb 2007 19:10:45 GMT]]></title><description><![CDATA[<p>Hallo bitte kann mir jeman helfen?</p>
<p>Ich habe folgendes problem</p>
<pre><code>enum MultiTypeType
    {
      Integer,
      Double,
      Character,
      Boolean
    };

    struct MultiType
    {
      MultiTypeType type;
      union
      {
        int Integer;
        double Double;
        char Character;
        bool Boolean;
      }
    };
</code></pre>
<p>Anstelle des char Character hätte ich gerne einen String aber wie mache ich das ?</p>
<p>Vielen Dank für eure Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1222895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222895</guid><dc:creator><![CDATA[Paul32]]></dc:creator><pubDate>Sun, 04 Feb 2007 19:10:45 GMT</pubDate></item><item><title><![CDATA[Reply to ENUM Struckt Datentyp  (Dringend !) on Sun, 04 Feb 2007 19:36:02 GMT]]></title><description><![CDATA[<p>Paul32 schrieb:</p>
<blockquote>
<p>Hallo bitte kann mir jeman helfen?</p>
<p>Ich habe folgendes problem</p>
<pre><code>enum MultiTypeType
    {
      Integer,
      Double,
      Character,
      Boolean
    };

    struct MultiType
    {
      MultiTypeType type;
      union
      {
        int Integer;
        double Double;
        char Character;
        bool Boolean;
      }
    };
</code></pre>
<p>Anstelle des char Character hätte ich gerne einen String aber wie mache ich das ?</p>
<p>Vielen Dank für eure Hilfe</p>
</blockquote>
<p>dann versuch mal das</p>
<pre><code>enum MultiTypeType
    {
      Integer,
      Double,
      Text,
      Boolean
    };

    struct MultiType
    {
      MultiTypeType type;
      union
      {
        int Integer;
        double Double;
        std::string Text;
        bool Boolean;
      }
    };
</code></pre>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1222906</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222906</guid><dc:creator><![CDATA[ten]]></dc:creator><pubDate>Sun, 04 Feb 2007 19:36:02 GMT</pubDate></item><item><title><![CDATA[Reply to ENUM Struckt Datentyp  (Dringend !) on Sun, 04 Feb 2007 19:46:55 GMT]]></title><description><![CDATA[<p>nee das geht natürlich nicht dann kommt folgender fehler</p>
<p>error C2621: Element MultiType::TEXT' von Union 'BenutzerType::&lt;unnamed-tag&gt;' besitzt den Kopierkonstruktor</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1222911</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222911</guid><dc:creator><![CDATA[Paul32]]></dc:creator><pubDate>Sun, 04 Feb 2007 19:46:55 GMT</pubDate></item><item><title><![CDATA[Reply to ENUM Struckt Datentyp  (Dringend !) on Sun, 04 Feb 2007 19:52:42 GMT]]></title><description><![CDATA[<p>Paul32 schrieb:</p>
<blockquote>
<p>nee das geht natürlich nicht dann kommt folgender fehler</p>
<p>error C2621: Element MultiType::TEXT' von Union 'BenutzerType::&lt;unnamed-tag&gt;' besitzt den Kopierkonstruktor</p>
</blockquote>
<p>so ein mist. ich hasse c++ <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /><br />
dann musste wohl 'nen char-array nehmen, wenn std::string nicht geht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1222913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222913</guid><dc:creator><![CDATA[ten]]></dc:creator><pubDate>Sun, 04 Feb 2007 19:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to ENUM Struckt Datentyp  (Dringend !) on Sun, 04 Feb 2007 19:58:41 GMT]]></title><description><![CDATA[<p>Das geht auch ned !!!</p>
<p>Arrays gehen auch nicht !!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1222916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222916</guid><dc:creator><![CDATA[Paul32]]></dc:creator><pubDate>Sun, 04 Feb 2007 19:58:41 GMT</pubDate></item><item><title><![CDATA[Reply to ENUM Struckt Datentyp  (Dringend !) on Sun, 04 Feb 2007 20:10:54 GMT]]></title><description><![CDATA[<p>so compileds bei mir ohne errors:</p>
<pre><code>#define MAX_TEXT_LENGTH 256
enum MultiTypeType
    {
      Integer,
      Double,
      Text,
      Boolean
    };

    struct MultiType
    {
      MultiTypeType type;
      union u
      {
        int Integer;
        double Double;
        char Text[MAX_TEXT_LENGTH];
        bool Boolean;
      };
    };
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1222928</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222928</guid><dc:creator><![CDATA[ten]]></dc:creator><pubDate>Sun, 04 Feb 2007 20:10:54 GMT</pubDate></item><item><title><![CDATA[Reply to ENUM Struckt Datentyp  (Dringend !) on Sun, 04 Feb 2007 21:09:42 GMT]]></title><description><![CDATA[<p>ten schrieb:</p>
<blockquote>
<p>أسامة بن محمد بن عوض بن لا</p>
</blockquote>
<p>Sicher ein wenig off topic, aber darf man erfahren, warum du als Signatur den Namen dieses Menschen wählst?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1222960</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222960</guid><dc:creator><![CDATA[Sherlock]]></dc:creator><pubDate>Sun, 04 Feb 2007 21:09:42 GMT</pubDate></item><item><title><![CDATA[Reply to ENUM Struckt Datentyp  (Dringend !) on Sun, 04 Feb 2007 21:20:56 GMT]]></title><description><![CDATA[<blockquote>
<p>ten schrieb:<br />
أسامة بن محمد بن عوض بن لا</p>
<p>Sicher ein wenig off topic, aber darf man erfahren, warum du als Signatur den Namen dieses Menschen wählst?</p>
</blockquote>
<p>Scheint ein Scherz zu sein <a href="http://www.c-plusplus.net/forum/viewtopic-var-p-is-1222943-and-highlight-is-.html#1222943" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-p-is-1222943-and-highlight-is-.html#1222943</a><br />
Könnte falsch verstanden werden...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1222963</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222963</guid><dc:creator><![CDATA[Sherlock]]></dc:creator><pubDate>Sun, 04 Feb 2007 21:20:56 GMT</pubDate></item><item><title><![CDATA[Reply to ENUM Struckt Datentyp  (Dringend !) on Sun, 04 Feb 2007 21:54:29 GMT]]></title><description><![CDATA[<p>Sherlock schrieb:</p>
<blockquote>
<p>ten schrieb:</p>
<blockquote>
<p>أسامة بن محمد بن عوض بن لا</p>
</blockquote>
<p>Sicher ein wenig off topic, aber darf man erfahren, warum du als Signatur den Namen dieses Menschen wählst?</p>
</blockquote>
<p>man wird doch wohl noch mit seinem richtigen namen unterschreiben dürfen, oder?<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1222985</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1222985</guid><dc:creator><![CDATA[ten]]></dc:creator><pubDate>Sun, 04 Feb 2007 21:54:29 GMT</pubDate></item><item><title><![CDATA[Reply to ENUM Struckt Datentyp  (Dringend !) on Mon, 05 Feb 2007 13:21:02 GMT]]></title><description><![CDATA[<p>Paul32 schrieb:</p>
<blockquote>
<p>...</p>
<pre><code>enum MultiTypeType
    {
      Integer,
      Double,
      Character,
      Boolean
    };

    struct MultiType
    {
      MultiTypeType type;
      union
      {
        int Integer;
        double Double;
        char Character;
        bool Boolean;
      }
    };
</code></pre>
<p>...</p>
</blockquote>
<p>Irgendwie habe den Verdacht, dass Du mit Gewalt Dein Programm unsicherer machen willst ...<br />
Vermutung: Das Ganze brauchst Du nicht (oder Du willst eine alte/schlechte API ansprechen). <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1223225</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1223225</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Mon, 05 Feb 2007 13:21:02 GMT</pubDate></item></channel></rss>