<?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[Array elemente]]></title><description><![CDATA[<p>Hallo ich habe ein Array sagen wir mal</p>
<p>string []tage = {&quot;MO&quot;,&quot;DI&quot;, &quot;MI&quot;};</p>
<p>Wie bekomme ich nun die Anzahl der elemente Raus die in Tage sind (also = 3);</p>
<p>tage-&gt;length();<br />
tage-&gt;size();</p>
<p>liefern beide immer 17 ???</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/171694/array-elemente</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 12:17:15 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/171694.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 28 Jan 2007 14:12:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Array elemente on Sun, 28 Jan 2007 14:12:30 GMT]]></title><description><![CDATA[<p>Hallo ich habe ein Array sagen wir mal</p>
<p>string []tage = {&quot;MO&quot;,&quot;DI&quot;, &quot;MI&quot;};</p>
<p>Wie bekomme ich nun die Anzahl der elemente Raus die in Tage sind (also = 3);</p>
<p>tage-&gt;length();<br />
tage-&gt;size();</p>
<p>liefern beide immer 17 ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218619</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218619</guid><dc:creator><![CDATA[Max23]]></dc:creator><pubDate>Sun, 28 Jan 2007 14:12:30 GMT</pubDate></item><item><title><![CDATA[Reply to Array elemente on Sun, 28 Jan 2007 14:24:12 GMT]]></title><description><![CDATA[<p>So klappt es bei mir:</p>
<pre><code class="language-cpp">sizeof (tage) / 16 //&lt;- Edit
</code></pre>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218624</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sun, 28 Jan 2007 14:24:12 GMT</pubDate></item><item><title><![CDATA[Reply to Array elemente on Sun, 28 Jan 2007 14:25:09 GMT]]></title><description><![CDATA[<p>sizeof(tage)/4 ???</p>
<p>wieso sollte das denn klappen???</p>
<p>in java gibt es tage.length() und das würde 3 liefern wieso geht das ned in C++?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218625</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218625</guid><dc:creator><![CDATA[Max23]]></dc:creator><pubDate>Sun, 28 Jan 2007 14:25:09 GMT</pubDate></item><item><title><![CDATA[Reply to Array elemente on Sun, 28 Jan 2007 14:41:43 GMT]]></title><description><![CDATA[<p>Das hat was mit den Bits zu tun, die ein Stringn im Arbeitsspeicher belegt. Du bekommst also über sizeof () die Bits, die insgesamt von dem Array belegt worden, und musst die dann noch durch die Zahl teilen, die ein einzelner String belegt. Dann haste die Anzahl der Elemente im Array. Das ist eigentlich auch nichts anderes als in Java, bloß das es nicht in eine Funktion gepackt wurde.</p>
<p>Mfg Ominion</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218630</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218630</guid><dc:creator><![CDATA[Ominion]]></dc:creator><pubDate>Sun, 28 Jan 2007 14:41:43 GMT</pubDate></item><item><title><![CDATA[Reply to Array elemente on Sun, 28 Jan 2007 14:45:23 GMT]]></title><description><![CDATA[<p>C-Arrays sollte man in C++ nicht mehr verwenden. Sie dir doch mal in einer C++-Referenz std::vector an, da hast du size().<br />
<a href="http://www.cppreference.com/cppvector/index.html" rel="nofollow">http://www.cppreference.com/cppvector/index.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1218634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1218634</guid><dc:creator><![CDATA[geloescht]]></dc:creator><pubDate>Sun, 28 Jan 2007 14:45:23 GMT</pubDate></item></channel></rss>