<?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[Wie bekommen Ich die Anzahl Tage des Monats]]></title><description><![CDATA[<p>Ich siche ein Methud die Anzahl Tage eine Monats zu &quot;berechnen&quot; Ich brächte ein Statisch Methode ( Als Parameter da Jahr und der Monate un arbeite DEM sTUDION 6.0 UND DEN ENTSPRECHENDEN mfc KLASSEN</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/144521/wie-bekommen-ich-die-anzahl-tage-des-monats</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Jul 2026 23:42:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/144521.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 19 Apr 2006 07:32:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wie bekommen Ich die Anzahl Tage des Monats on Wed, 19 Apr 2006 07:32:36 GMT]]></title><description><![CDATA[<p>Ich siche ein Methud die Anzahl Tage eine Monats zu &quot;berechnen&quot; Ich brächte ein Statisch Methode ( Als Parameter da Jahr und der Monate un arbeite DEM sTUDION 6.0 UND DEN ENTSPRECHENDEN mfc KLASSEN</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1040279</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1040279</guid><dc:creator><![CDATA[Thomas Andreas Kocher]]></dc:creator><pubDate>Wed, 19 Apr 2006 07:32:36 GMT</pubDate></item><item><title><![CDATA[Reply to Wie bekommen Ich die Anzahl Tage des Monats on Wed, 19 Apr 2006 07:45:17 GMT]]></title><description><![CDATA[<p>Versuch's mal mit elementarer Zeit-Arithmetik:</p>
<pre><code class="language-cpp">CTime t(Jahr,Monat+1,1,0,0,0);//erster Tag des Folgemonats
t-=CTimeSpan(1,0,0,0);        //einen Tag zurück = letzter Tag des aktuellen Monats
return t.GetDay();
</code></pre>
<p>Alternativ kannst du dir auch ein Array zusammenstellen und daraus direkt die Tage ablesen:</p>
<pre><code class="language-cpp">int days[]={31,28,31,30,31,30,31,31,30,31,30,31};

if(Monat==2 &amp;&amp; istschaltjahr(Jahr))//istschaltjahr() mußt du selber schreiben
  return 29;
else
  return days[Monat];
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1040287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1040287</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Wed, 19 Apr 2006 07:45:17 GMT</pubDate></item><item><title><![CDATA[Reply to Wie bekommen Ich die Anzahl Tage des Monats on Wed, 19 Apr 2006 08:54:54 GMT]]></title><description><![CDATA[<p>die fehlende funktion: <a href="http://volkard.de/vcppkold/logische_ausdruecke.html" rel="nofollow">http://volkard.de/vcppkold/logische_ausdruecke.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1040341</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1040341</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Wed, 19 Apr 2006 08:54:54 GMT</pubDate></item></channel></rss>