<?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[typdef geht nicht richtig]]></title><description><![CDATA[<p>Hallo, habe per typdef mir etwas definiert.<br />
Naja und nun klappt die Initialisierung nicht ?!</p>
<pre><code class="language-cpp">typedef long int BestellNr;

	BestellNr=2;
</code></pre>
<p>Fehlermeldung:</p>
<blockquote>
<p>Error 1 error C2513: 'long' : no variable declared before '='</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/topic/249215/typdef-geht-nicht-richtig</link><generator>RSS for Node</generator><lastBuildDate>Wed, 16 Sep 2026 16:19:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/249215.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 Sep 2009 10:19:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to typdef geht nicht richtig on Fri, 04 Sep 2009 10:19:21 GMT]]></title><description><![CDATA[<p>Hallo, habe per typdef mir etwas definiert.<br />
Naja und nun klappt die Initialisierung nicht ?!</p>
<pre><code class="language-cpp">typedef long int BestellNr;

	BestellNr=2;
</code></pre>
<p>Fehlermeldung:</p>
<blockquote>
<p>Error 1 error C2513: 'long' : no variable declared before '='</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1772091</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1772091</guid><dc:creator><![CDATA[werhatanderuhrgedreht]]></dc:creator><pubDate>Fri, 04 Sep 2009 10:19:21 GMT</pubDate></item><item><title><![CDATA[Reply to typdef geht nicht richtig on Fri, 04 Sep 2009 10:20:57 GMT]]></title><description><![CDATA[<p>Was machst du da?!<br />
Lies dir das Kapitel nochmal durch...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1772093</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1772093</guid><dc:creator><![CDATA[HÄÄÄ]]></dc:creator><pubDate>Fri, 04 Sep 2009 10:20:57 GMT</pubDate></item><item><title><![CDATA[Reply to typdef geht nicht richtig on Fri, 04 Sep 2009 10:22:23 GMT]]></title><description><![CDATA[<p>HÄÄÄ schrieb:</p>
<blockquote>
<p>Was machst du da?!<br />
Lies dir das Kapitel nochmal durch...</p>
</blockquote>
<p>Ja ich deklarier ne Varibel und weiß ihr anschließend was zu.<br />
Gesagt, getan!<br />
Aber leider gehts nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1772095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1772095</guid><dc:creator><![CDATA[werwer]]></dc:creator><pubDate>Fri, 04 Sep 2009 10:22:23 GMT</pubDate></item><item><title><![CDATA[Reply to typdef geht nicht richtig on Fri, 04 Sep 2009 10:25:01 GMT]]></title><description><![CDATA[<p>Nenene,</p>
<pre><code class="language-cpp">//Kenn die Syntax jetzt nicht genau,...
typedef long int li    //Jetzt ist li eine Abkürzung zu long int

li BestellNr = 233232;  // BestellNr ist  vom TYP long int
</code></pre>
<p>Lg HÄÄÄ</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1772098</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1772098</guid><dc:creator><![CDATA[HÄÄÄ]]></dc:creator><pubDate>Fri, 04 Sep 2009 10:25:01 GMT</pubDate></item><item><title><![CDATA[Reply to typdef geht nicht richtig on Fri, 04 Sep 2009 10:25:15 GMT]]></title><description><![CDATA[<p>Dein <code>typedef</code> definiert <code>BestellNr</code> als Typ (genauer: als Alias für <code>long</code> ), wie der Name schon sagt. Einem Typ kannst du aber keinen Wert zuweisen, sondern du musst eine Variable dieses Typs haben:</p>
<pre><code class="language-cpp">typedef long int BestellNr;

BestellNr nummer = 2;
</code></pre>
<p>Stefan.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1772099</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1772099</guid><dc:creator><![CDATA[DStefan]]></dc:creator><pubDate>Fri, 04 Sep 2009 10:25:15 GMT</pubDate></item><item><title><![CDATA[Reply to typdef geht nicht richtig on Fri, 04 Sep 2009 10:25:19 GMT]]></title><description><![CDATA[<p>werwer schrieb:</p>
<blockquote>
<p>Ja ich deklarier ne Varibel und weiß ihr anschließend was zu.</p>
</blockquote>
<p>Du deklarierst keine <strong>Variable</strong>, du definierst einen Datentyp. Und dem kann man nichts zu<strong>weisen</strong>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1772100</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1772100</guid><dc:creator><![CDATA[Registrierter Troll]]></dc:creator><pubDate>Fri, 04 Sep 2009 10:25:19 GMT</pubDate></item></channel></rss>