<?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[zahlen hochzählen]]></title><description><![CDATA[<p>wie zähle ich eine zahl hoch?<br />
1 click1<br />
2 click2<br />
usw. mit einer beschränkung also nicht mehr als 400 z.B.</p>
<p>tipps reichen.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/90099/zahlen-hochzählen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 30 May 2026 17:39:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/90099.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 26 Oct 2004 10:35:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 10:35:17 GMT]]></title><description><![CDATA[<p>wie zähle ich eine zahl hoch?<br />
1 click1<br />
2 click2<br />
usw. mit einer beschränkung also nicht mehr als 400 z.B.</p>
<p>tipps reichen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637739</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637739</guid><dc:creator><![CDATA[smirnofe]]></dc:creator><pubDate>Tue, 26 Oct 2004 10:35:17 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 10:41:10 GMT]]></title><description><![CDATA[<p>In einer Schleife?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637744</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637744</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 26 Oct 2004 10:41:10 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 10:42:56 GMT]]></title><description><![CDATA[<p>click??</p>
<p>Wie auch immer: Du weißt hoffentlich, was eine Variable ist? Du kennst die 4 Grundrechenarten? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/637747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637747</guid><dc:creator><![CDATA[HEZ]]></dc:creator><pubDate>Tue, 26 Oct 2004 10:42:56 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 10:47:51 GMT]]></title><description><![CDATA[<p>das ist mir klar in einer vor schleife<br />
aber wie kriege ich das hin das er immer wieder eins draufpakt.<br />
weil wenn ich int i = 0; oder irgenwas anderes deklariere dann geht das nicht mehr.<br />
ich möchte ja das er nach jedem click eins drauf packt. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_savoring_food"
      title=":yum:"
      alt="😋"
    /><br />
ich habe irgendwie das gefühl das die leute auf meine fragen warten ( <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/637755</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637755</guid><dc:creator><![CDATA[smirnofe]]></dc:creator><pubDate>Tue, 26 Oct 2004 10:47:51 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 10:53:10 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>zeig dochmal her was du schon versucht hast<br />
(dann kann dir auch besser geholfen werden)</p>
<p>MfG<br />
Klaus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637758</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637758</guid><dc:creator><![CDATA[KlausB]]></dc:creator><pubDate>Tue, 26 Oct 2004 10:53:10 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 10:56:37 GMT]]></title><description><![CDATA[<p>Ich nehme dir jetzt nicht ab, dass du keine Ahnung hast, wie man zwei Zahlen addiert... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /> dann wirds wohl an der Deklaration liegen. Wenn du deine int-Zahl in der OnClick-Routine deklarierst, wird sie beim nächsten Click weg sein. Du musst sie also woanders deklarieren. Wie wäre es denn im Header?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637763</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637763</guid><dc:creator><![CDATA[HEZ]]></dc:creator><pubDate>Tue, 26 Oct 2004 10:56:37 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 11:04:42 GMT]]></title><description><![CDATA[<p>lasst mich ausprobieren.<br />
momentchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637769</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637769</guid><dc:creator><![CDATA[smirnofe]]></dc:creator><pubDate>Tue, 26 Oct 2004 11:04:42 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 11:09:17 GMT]]></title><description><![CDATA[<p>smirnofe schrieb:</p>
<blockquote>
<p>ich habe irgendwie das gefühl das die leute auf meine fragen warten</p>
</blockquote>
<p>Also ich für meinen Teil warte eigentlich eher darauf, dass Du dich endlich mal mit den Grundlagen der Programmierung beschäftigst. Hättest Du auch nur 2 Wochen investiert, hättest Du dir hier 99% der Fragen sparen können.</p>
<p>Das ist alles absolut grundlegender Firlefanz. Wenn ich mir aber die Qualität Deiner Fragestellungen so ansehe, befürchte ich fast, dass Du das Lernen als solches schon nicht gelernt hast. Ich sag nur PISA-Studie...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637773</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637773</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Tue, 26 Oct 2004 11:09:17 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 12:59:27 GMT]]></title><description><![CDATA[<p>Deklariere ne int variable in der Klassen Definition an (wo public etc. ist)..<br />
Beim button mußt du dann nur inkrementieren.</p>
<pre><code class="language-cpp">meinevar++;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/637878</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637878</guid><dc:creator><![CDATA[DJ BlackEagle]]></dc:creator><pubDate>Tue, 26 Oct 2004 12:59:27 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 14:12:30 GMT]]></title><description><![CDATA[<p>oder du schreibt</p>
<pre><code class="language-cpp">void __fastcall TfrmMain::Button1Click(TObject *Sender)
{
int i = 0;

i = i+1;

}
</code></pre>
<p>sollte gehen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637962</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637962</guid><dc:creator><![CDATA[*23*]]></dc:creator><pubDate>Tue, 26 Oct 2004 14:12:30 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 14:24:33 GMT]]></title><description><![CDATA[<p>|23| schrieb:</p>
<blockquote>
<pre><code class="language-cpp">void __fastcall TfrmMain::Button1Click(TObject *Sender)
{
int i = 0;

i = i+1;

}
</code></pre>
</blockquote>
<p>Das geht scon, aber was hast du davon als Ergebnis immer nur 1 zu erhalten? Das ist nicht das was smirnofe will <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/637974</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637974</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Tue, 26 Oct 2004 14:24:33 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 14:27:46 GMT]]></title><description><![CDATA[<p>.. man muss int i = 0; aber global dekla.........</p>
<p>sry</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637981</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637981</guid><dc:creator><![CDATA[*23*]]></dc:creator><pubDate>Tue, 26 Oct 2004 14:27:46 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 14:33:46 GMT]]></title><description><![CDATA[<p>das meinte ich <a href="http://danke.es" rel="nofollow">danke.es</a> geht aber auch in der anwendung mit einer <strong>for</strong> schleife ohne globale deklaration ich hatte das gestern hingekriegt aber heute alls ich aufgewacht bin konnte ich das nicht mehr. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/637992</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637992</guid><dc:creator><![CDATA[smirnofe]]></dc:creator><pubDate>Tue, 26 Oct 2004 14:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 14:47:05 GMT]]></title><description><![CDATA[<p>Warum willst du das in der for schleife tun?</p>
<p>Wenn du i in der Klasse deklarierst (wie schon vor allen sagte).<br />
mßt du nur noch den wert inkrementieren.<br />
Das wäre so:</p>
<pre><code class="language-cpp">i++; // geht ein wert höher
</code></pre>
<p>Wenn du es nicht in der Klasse global machst, wäre i nur innherhalb der methode gültig. und in anderen methoden nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/638008</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/638008</guid><dc:creator><![CDATA[DJ BlackEagle]]></dc:creator><pubDate>Tue, 26 Oct 2004 14:47:05 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 15:01:12 GMT]]></title><description><![CDATA[<p>Ds stimmt nicht ganz ich könnte das in ein editfeld stellen.<br />
Man könnte über das editfeld die aktuelle anzahl der arrays sehen.<br />
Ich denke um die ecke(umständlich) <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /><br />
Ich hatte in der for schleife auch ein schleifen zähler eingebaut.<br />
Ich weiß das man das auch machen könnte wenn man das global deklariert;<br />
Ich mag halt umwege <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/638034</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/638034</guid><dc:creator><![CDATA[smirnofe]]></dc:creator><pubDate>Tue, 26 Oct 2004 15:01:12 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 15:12:22 GMT]]></title><description><![CDATA[<p>|23| schrieb:</p>
<blockquote>
<p>.. man muss int i = 0; aber global dekla.........</p>
<p>sry</p>
</blockquote>
<p>Diese globale Deklaration sollte man sich IMHO abgewöhnen. Am besten in den private Teil der Klasse und fertig. So spart man sich dann auch den Ärger mit versehntlich gleich angelegten Variablennamen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/638051</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/638051</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Tue, 26 Oct 2004 15:12:22 GMT</pubDate></item><item><title><![CDATA[Reply to zahlen hochzählen on Tue, 26 Oct 2004 15:15:07 GMT]]></title><description><![CDATA[<p>PuppetMaster2k schrieb:</p>
<blockquote>
<p>Am besten in den private Teil der Klasse und fertig.</p>
</blockquote>
<p>Jo hier wär auch ne Static ganz sinngemäss... allerdings muss man beachten, dass dann niemand ausser der Funktion zugriff hat... (o:</p>
<p>-junix</p>
]]></description><link>https://www.c-plusplus.net/forum/post/638055</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/638055</guid><dc:creator><![CDATA[junix]]></dc:creator><pubDate>Tue, 26 Oct 2004 15:15:07 GMT</pubDate></item></channel></rss>