<?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[typedef 8 &#x2F; 16 &#x2F; 32bit]]></title><description><![CDATA[<p>hi</p>
<p>wollte mal wissen, wie ich eine zB 8/16/32/...bit integer oder double, ... definieren kann.</p>
<p>und was ist der unterschied zwischen</p>
<pre><code>struct bla
{
  int a, b, c;
};
</code></pre>
<p>und</p>
<pre><code>typedef struct
{
  int a, b, c;
} bla;
</code></pre>
<p>typedef_16</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/136139/typedef-8-16-32bit</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 09:22:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/136139.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 07 Feb 2006 16:34:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 16:34:16 GMT]]></title><description><![CDATA[<p>hi</p>
<p>wollte mal wissen, wie ich eine zB 8/16/32/...bit integer oder double, ... definieren kann.</p>
<p>und was ist der unterschied zwischen</p>
<pre><code>struct bla
{
  int a, b, c;
};
</code></pre>
<p>und</p>
<pre><code>typedef struct
{
  int a, b, c;
} bla;
</code></pre>
<p>typedef_16</p>
]]></description><link>https://www.c-plusplus.net/forum/post/988698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988698</guid><dc:creator><![CDATA[typedef_16]]></dc:creator><pubDate>Tue, 07 Feb 2006 16:34:16 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 19:26:02 GMT]]></title><description><![CDATA[<p>Ich versteh die frage nicht ganz du meinst wohl</p>
<pre><code class="language-cpp">char a; //8bit, aber für zeichen nicht für interger
short int b; // 16bit
int c; //32bit
float d; //auch 32 aber für kommazahlen
double e; //64bit für kommazahlen
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/988860</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988860</guid><dc:creator><![CDATA[Mario Sandler]]></dc:creator><pubDate>Tue, 07 Feb 2006 19:26:02 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 19:30:41 GMT]]></title><description><![CDATA[<p><a href="http://Storm.Xapek.de" rel="nofollow">Storm.Xapek.de</a> schrieb:</p>
<blockquote>
<p>Ich versteh die frage nicht ganz du meinst wohl</p>
<pre><code class="language-cpp">char a; //8bit, aber für zeichen nicht für interger
short int b; // 16bit
int c; //32bit
float d; //auch 32 aber für kommazahlen
double e; //64bit für kommazahlen
</code></pre>
</blockquote>
<p>Falsch, außer char.</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/26836">@Topic</a>: Du kannst nicht Datentypen mit unbegrenzter Größe erstellen, das muss deine Architektur unterstützen. Falls sie das nicht tut musst du es selbst implementieren oder eine geeignete Library benutzen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/988867</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988867</guid><dc:creator><![CDATA[OMFG]]></dc:creator><pubDate>Tue, 07 Feb 2006 19:30:41 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:12:32 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">typedef struct
{
  int a, b, c;
} bla;
</code></pre>
<p>C != C++<br />
in C musst du bei Variablen von Strukturen immer dazu schreiben das es eine struct ist:</p>
<pre><code class="language-cpp">struct A
{
int A;
};

A x; // Compilerfehler in C
struct A x; // kein Compilerfehler in C
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/988910</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988910</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:12:32 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:13:31 GMT]]></title><description><![CDATA[<p>ja öhm, wie mach ich mir ein 64bit integer, wenn ich eine 64bit plattform habe? ist das dann automatisch 64bit, wenn ja - wie mach ich dann auf nem 64bit system nen 32bit integer? ^^</p>
<p>typedef_16</p>
]]></description><link>https://www.c-plusplus.net/forum/post/988913</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988913</guid><dc:creator><![CDATA[typedef_16]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:13:31 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:14:06 GMT]]></title><description><![CDATA[<p>mit typedef für man eine Art alias namen für etwas ein - statt immer</p>
<pre><code class="language-cpp">struct A
</code></pre>
<p>zu schreiben kann man dann nur noch TYP_A schreiben:</p>
<pre><code class="language-cpp">typedef struct A
{
   int A;
} ATYP;

ATYP x; // C Compiler ist zufrieden
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/988914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988914</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:14:06 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:15:24 GMT]]></title><description><![CDATA[<p>erst musst du herausfinden wieviel Bit ein Byte hat <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="😉"
    /> - dann kannst du mit sizeof herausfinden welcher typ wirklich 64 Bit hat</p>
<p>z. B.:</p>
<pre><code class="language-cpp">cout&lt;&lt;sizeof(long int)&lt;&lt;endl;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/988916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988916</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:15:24 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:16:09 GMT]]></title><description><![CDATA[<p>Du musst dein Programm ja eh neu compilieren, und wenn du 64 Bit brauchst machst du das eben so:</p>
<pre><code class="language-cpp">namespace Types
{
    #ifdef MY_64_BIT_INDICATOR
    typedef Integer64 int;
    typedef UInteger64 unsigned;
    #elseif
    typedef Integer64 long;
    typedef UInteger64 unsigned long;
    #endif
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/988918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988918</guid><dc:creator><![CDATA[OMFG]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:16:09 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:16:50 GMT]]></title><description><![CDATA[<p>Vertexwahn schrieb:</p>
<blockquote>
<pre><code class="language-cpp">typedef struct
{
  int a, b, c;
} bla;
</code></pre>
</blockquote>
<p>also ist <strong>das</strong> C und das andere C++?</p>
<p>typedef_16</p>
]]></description><link>https://www.c-plusplus.net/forum/post/988921</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988921</guid><dc:creator><![CDATA[typedef_16]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:16:50 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:18:13 GMT]]></title><description><![CDATA[<p>Sorry sollte bei der zweiten Präprozesseranweisung nur #else heißen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/988924</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988924</guid><dc:creator><![CDATA[OMFG]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:18:13 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:18:24 GMT]]></title><description><![CDATA[<p>beides wird von einem C++ Compiler übersetzt - nur in C macht man diese für einen C++ Programmierer umständliche Art und Weiße der Deklartion/Definition von Strukturen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/988926</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988926</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:18:24 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:18:59 GMT]]></title><description><![CDATA[<p>Und die Typen natürlich anderst herum, bin grade etwas verwirrt <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/988928</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988928</guid><dc:creator><![CDATA[OMFG]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:18:59 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:24:38 GMT]]></title><description><![CDATA[<p>oder ganz extrem mit bitfeldern und operator = vlt.<br />
lol</p>
]]></description><link>https://www.c-plusplus.net/forum/post/988935</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988935</guid><dc:creator><![CDATA[Cpt. Tanga]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:24:38 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:26:16 GMT]]></title><description><![CDATA[<p>ok, dann fass ich mal zusammen:</p>
<pre><code class="language-cpp">typedef struct
{
...
} bla;

struct bla
{
...
};
</code></pre>
<p>beides erfüllt exakt den selben zweck?</p>
<p>typedef_16</p>
]]></description><link>https://www.c-plusplus.net/forum/post/988937</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988937</guid><dc:creator><![CDATA[typedef_16]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:26:16 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:33:46 GMT]]></title><description><![CDATA[<p>grob gesagt: in C++ ja - in C nein</p>
]]></description><link>https://www.c-plusplus.net/forum/post/988950</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988950</guid><dc:creator><![CDATA[Vertexwahn]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to typedef 8 &#x2F; 16 &#x2F; 32bit on Tue, 07 Feb 2006 20:49:52 GMT]]></title><description><![CDATA[<p>OMFG schrieb:</p>
<blockquote>
<p><a href="http://Storm.Xapek.de" rel="nofollow">Storm.Xapek.de</a> schrieb:</p>
<blockquote>
<p>Ich versteh die frage nicht ganz du meinst wohl</p>
<pre><code class="language-cpp">char a; //8bit, aber für zeichen nicht für interger
short int b; // 16bit
int c; //32bit
float d; //auch 32 aber für kommazahlen
double e; //64bit für kommazahlen
</code></pre>
</blockquote>
<p>Falsch, außer char.</p>
</blockquote>
<p>Nunja, genau genommen ist keines korrekt. C++ legt ja keine konkreten Grössen der Typen fest. Auf gängigen Multimedia Systemen hängen diese vom verwendeten Datenmodell ab, wie zB ILP32 oder LLP64. Kürzlich wurde aber eine Möglichkeit <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-131658.html" rel="nofollow">hier</a> besprochen, wie man solche Typen ohne externe Abhängigkeiten und ohne umständliche Präprozessor Unterscheidungen trotzdem bekommen kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/988967</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/988967</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Tue, 07 Feb 2006 20:49:52 GMT</pubDate></item></channel></rss>