<?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[Goto-Sprünge Speicherintenisv: Komprimierung möglich ?]]></title><description><![CDATA[<p>Hallo liebe Community,</p>
<p>Ich habe letztens ein kleines Programm geschrieben das einen Taschenrechner simuliert, der in der Lage ist die 4 Grundrechenarten anzuwenden, wie auch die Möglichkeit mit letztem Ergebniss weiterzurechnen. Nun zu meiner Frage: ist es möglich dieses Programm etwas kompakter zu schreiben ? Und wenn ich strings miteinbinde, wie kann ich Speicherlecks verhindern ? Ich danke schon mal im vorraus, hier ist mein Programm, ist mit einer CPP-Droid Applikation auf meinem Smartphone geschrieben worden, allerdings beinhaltet die app-libary alle Funktionen wie die Visual-Studio Engine 2013, die ich sonst dafür verwende.</p>
<p>#include &lt;iostream&gt; #include &lt;conio.h&gt;<br />
using namespace std;<br />
int main ()<br />
{</p>
<p>main2:</p>
<p>float Zahl1;<br />
char Operator1;<br />
float Zahl2;<br />
float Zahl3;<br />
float Zahl4;<br />
float Zahl5;<br />
float Zahl6;<br />
char c;<br />
Zahl3 = Zahl1 + Zahl2;<br />
Zahl4 = Zahl1 - Zahl2;<br />
Zahl5 = Zahl1 * Zahl2;<br />
Zahl6 = Zahl1 / Zahl2;<br />
lastop:<br />
if (Zahl3==Zahl1)<br />
{<br />
std::cout &lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zahl 1: &quot;<br />
&lt;&lt; Zahl2 + Zahl3<br />
&lt;&lt; &quot;\n&quot;;<br />
Zahl1 = Zahl2 + Zahl3;<br />
goto lastop5;<br />
}<br />
if (Zahl4==Zahl1)<br />
{<br />
std::cout &lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zahl 1: &quot;<br />
&lt;&lt; Zahl4 - Zahl2<br />
&lt;&lt; &quot;\n&quot;;<br />
Zahl1 = Zahl4 - Zahl2;<br />
goto lastop5;<br />
}<br />
if (Zahl5==Zahl1)<br />
{<br />
std::cout &lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zahl 1: &quot;<br />
&lt;&lt; Zahl2 * Zahl5<br />
&lt;&lt; &quot;\n&quot;;<br />
Zahl1 = Zahl2 * Zahl5;<br />
goto lastop5;<br />
}<br />
if (Zahl6==Zahl1)<br />
{<br />
std::cout &lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zahl 1: &quot;<br />
&lt;&lt; Zahl6 / Zahl2<br />
&lt;&lt; &quot;\n&quot;;<br />
Zahl1 = Zahl6 / Zahl2;<br />
goto lastop5;<br />
}<br />
std::cout &lt;&lt; &quot;Zahl 1 eingeben&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Enter drücken&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Operator &quot;<br />
&lt;&lt; &quot;eingeben&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Enter drücken&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zahl 2 eingeben&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Erneut bestätigen&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Operator 1 : +&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Operator 2 : -&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Operator 3 : *&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Operator 4 : /&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;<br />
std::cout &lt;&lt; &quot;Zahl 1: &quot;;<br />
std::cin &gt;&gt; Zahl1;<br />
lastop5:<br />
std::cout &lt;&lt; &quot;Operator: &quot;;<br />
std::cin &gt;&gt; Operator1;<br />
std::cout &lt;&lt; &quot;Zahl 2: &quot;;<br />
std::cin &gt;&gt; Zahl2;<br />
std::cout &lt;&lt; &quot;\n&quot;;</p>
<p>if (Zahl2)</p>
<p>switch (Operator1)<br />
{</p>
<p>case '+':<br />
std::cout &lt;&lt; &quot;Ergebniss: &quot;<br />
&lt;&lt; Zahl1 + Zahl2<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;<br />
main6:</p>
<p>if (c!='j')<br />
{<br />
std::cout &lt;&lt; &quot;Zum fortfahren&quot;<br />
&lt;&lt; &quot; (j) tippen,&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;zum Weiterrechnen&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;mit letztem&quot;<br />
&lt;&lt; &quot; Ergebniss&quot;<br />
&lt;&lt; &quot; (w) tippen&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;und bestätigen.&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zum beenden&quot;<br />
&lt;&lt; &quot; (e) tippen. : &quot;;<br />
rego:<br />
std::cin.get();<br />
c = getchar();</p>
<p>if(c!='j'&amp;&amp;c!='w'&amp;&amp;c!='e')<br />
{<br />
c = 'p';<br />
cout &lt;&lt; &quot;Ungültige Eingabe &quot;;<br />
goto rego;<br />
}<br />
if(c=='j')<br />
{<br />
c = 'p';<br />
goto main3;<br />
}<br />
if(c=='w')<br />
{<br />
c = 'p';<br />
if(Operator1=='+')<br />
{<br />
Zahl3 = Zahl1;<br />
}<br />
if(Operator1=='-')<br />
{<br />
Zahl4 = Zahl1;<br />
}<br />
if(Operator1=='*')<br />
{<br />
Zahl5 = Zahl1;<br />
}<br />
if(Operator1=='/')<br />
{<br />
Zahl6 = Zahl1;<br />
}<br />
}<br />
if(c=='e')<br />
{<br />
goto end;<br />
}<br />
goto lastop;<br />
}<br />
main3:</p>
<p>std::cout &lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;</p>
<p>goto main2;</p>
<p>case '-':<br />
std::cout &lt;&lt; &quot;Ergebniss: &quot;<br />
&lt;&lt; Zahl1 - Zahl2<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;<br />
goto main6;</p>
<p>case '*':<br />
std::cout &lt;&lt; &quot;Ergebniss: &quot;<br />
&lt;&lt; Zahl1 * Zahl2<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;<br />
goto main6;<br />
case '/':<br />
std::cout &lt;&lt; &quot;Ergebniss: &quot;<br />
&lt;&lt; Zahl1 / Zahl2<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;<br />
goto main6;<br />
}<br />
end:<br />
return 0;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/338477/goto-sprünge-speicherintenisv-komprimierung-möglich</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 10:34:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/338477.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 18 Jun 2016 09:14:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 09:14:59 GMT]]></title><description><![CDATA[<p>Hallo liebe Community,</p>
<p>Ich habe letztens ein kleines Programm geschrieben das einen Taschenrechner simuliert, der in der Lage ist die 4 Grundrechenarten anzuwenden, wie auch die Möglichkeit mit letztem Ergebniss weiterzurechnen. Nun zu meiner Frage: ist es möglich dieses Programm etwas kompakter zu schreiben ? Und wenn ich strings miteinbinde, wie kann ich Speicherlecks verhindern ? Ich danke schon mal im vorraus, hier ist mein Programm, ist mit einer CPP-Droid Applikation auf meinem Smartphone geschrieben worden, allerdings beinhaltet die app-libary alle Funktionen wie die Visual-Studio Engine 2013, die ich sonst dafür verwende.</p>
<p>#include &lt;iostream&gt; #include &lt;conio.h&gt;<br />
using namespace std;<br />
int main ()<br />
{</p>
<p>main2:</p>
<p>float Zahl1;<br />
char Operator1;<br />
float Zahl2;<br />
float Zahl3;<br />
float Zahl4;<br />
float Zahl5;<br />
float Zahl6;<br />
char c;<br />
Zahl3 = Zahl1 + Zahl2;<br />
Zahl4 = Zahl1 - Zahl2;<br />
Zahl5 = Zahl1 * Zahl2;<br />
Zahl6 = Zahl1 / Zahl2;<br />
lastop:<br />
if (Zahl3==Zahl1)<br />
{<br />
std::cout &lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zahl 1: &quot;<br />
&lt;&lt; Zahl2 + Zahl3<br />
&lt;&lt; &quot;\n&quot;;<br />
Zahl1 = Zahl2 + Zahl3;<br />
goto lastop5;<br />
}<br />
if (Zahl4==Zahl1)<br />
{<br />
std::cout &lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zahl 1: &quot;<br />
&lt;&lt; Zahl4 - Zahl2<br />
&lt;&lt; &quot;\n&quot;;<br />
Zahl1 = Zahl4 - Zahl2;<br />
goto lastop5;<br />
}<br />
if (Zahl5==Zahl1)<br />
{<br />
std::cout &lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zahl 1: &quot;<br />
&lt;&lt; Zahl2 * Zahl5<br />
&lt;&lt; &quot;\n&quot;;<br />
Zahl1 = Zahl2 * Zahl5;<br />
goto lastop5;<br />
}<br />
if (Zahl6==Zahl1)<br />
{<br />
std::cout &lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zahl 1: &quot;<br />
&lt;&lt; Zahl6 / Zahl2<br />
&lt;&lt; &quot;\n&quot;;<br />
Zahl1 = Zahl6 / Zahl2;<br />
goto lastop5;<br />
}<br />
std::cout &lt;&lt; &quot;Zahl 1 eingeben&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Enter drücken&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Operator &quot;<br />
&lt;&lt; &quot;eingeben&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Enter drücken&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zahl 2 eingeben&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Erneut bestätigen&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Operator 1 : +&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Operator 2 : -&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Operator 3 : *&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Operator 4 : /&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;<br />
std::cout &lt;&lt; &quot;Zahl 1: &quot;;<br />
std::cin &gt;&gt; Zahl1;<br />
lastop5:<br />
std::cout &lt;&lt; &quot;Operator: &quot;;<br />
std::cin &gt;&gt; Operator1;<br />
std::cout &lt;&lt; &quot;Zahl 2: &quot;;<br />
std::cin &gt;&gt; Zahl2;<br />
std::cout &lt;&lt; &quot;\n&quot;;</p>
<p>if (Zahl2)</p>
<p>switch (Operator1)<br />
{</p>
<p>case '+':<br />
std::cout &lt;&lt; &quot;Ergebniss: &quot;<br />
&lt;&lt; Zahl1 + Zahl2<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;<br />
main6:</p>
<p>if (c!='j')<br />
{<br />
std::cout &lt;&lt; &quot;Zum fortfahren&quot;<br />
&lt;&lt; &quot; (j) tippen,&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;zum Weiterrechnen&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;mit letztem&quot;<br />
&lt;&lt; &quot; Ergebniss&quot;<br />
&lt;&lt; &quot; (w) tippen&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;und bestätigen.&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;Zum beenden&quot;<br />
&lt;&lt; &quot; (e) tippen. : &quot;;<br />
rego:<br />
std::cin.get();<br />
c = getchar();</p>
<p>if(c!='j'&amp;&amp;c!='w'&amp;&amp;c!='e')<br />
{<br />
c = 'p';<br />
cout &lt;&lt; &quot;Ungültige Eingabe &quot;;<br />
goto rego;<br />
}<br />
if(c=='j')<br />
{<br />
c = 'p';<br />
goto main3;<br />
}<br />
if(c=='w')<br />
{<br />
c = 'p';<br />
if(Operator1=='+')<br />
{<br />
Zahl3 = Zahl1;<br />
}<br />
if(Operator1=='-')<br />
{<br />
Zahl4 = Zahl1;<br />
}<br />
if(Operator1=='*')<br />
{<br />
Zahl5 = Zahl1;<br />
}<br />
if(Operator1=='/')<br />
{<br />
Zahl6 = Zahl1;<br />
}<br />
}<br />
if(c=='e')<br />
{<br />
goto end;<br />
}<br />
goto lastop;<br />
}<br />
main3:</p>
<p>std::cout &lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;</p>
<p>goto main2;</p>
<p>case '-':<br />
std::cout &lt;&lt; &quot;Ergebniss: &quot;<br />
&lt;&lt; Zahl1 - Zahl2<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;<br />
goto main6;</p>
<p>case '*':<br />
std::cout &lt;&lt; &quot;Ergebniss: &quot;<br />
&lt;&lt; Zahl1 * Zahl2<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;<br />
goto main6;<br />
case '/':<br />
std::cout &lt;&lt; &quot;Ergebniss: &quot;<br />
&lt;&lt; Zahl1 / Zahl2<br />
&lt;&lt; &quot;\n&quot;<br />
&lt;&lt; &quot;\n&quot;;<br />
goto main6;<br />
}<br />
end:<br />
return 0;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499304</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499304</guid><dc:creator><![CDATA[IfundSwitchBuddy]]></dc:creator><pubDate>Sat, 18 Jun 2016 09:14:59 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 09:23:25 GMT]]></title><description><![CDATA[<p>Schau Dir Deinen eigenen Post mal an. Glaubst Du ernsthaft, dass sich das jemand anguckt?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499305</guid><dc:creator><![CDATA[SG1]]></dc:creator><pubDate>Sat, 18 Jun 2016 09:23:25 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 09:42:22 GMT]]></title><description><![CDATA[<p>IfundSwitchBuddy schrieb:</p>
<blockquote>
<p>ist es möglich dieses Programm etwas kompakter zu schreiben ?</p>
</blockquote>
<p>Auf keinen Fall. Das ist ein wunderschönes Programm.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499307</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499307</guid><dc:creator><![CDATA[EOP]]></dc:creator><pubDate>Sat, 18 Jun 2016 09:42:22 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 10:20:39 GMT]]></title><description><![CDATA[<p>Ist ja fast schon Kunst <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>
<p>Stichwort: Funktionen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499308</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499308</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Sat, 18 Jun 2016 10:20:39 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 11:00:39 GMT]]></title><description><![CDATA[<p>Ich danke für diese Positiven Feedbacks <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":-D"
      alt="😃"
    /> Das sagt mir schon mal das ich auf dem Richtigen weg bin. Und zur ersten Antwort : ich weiß das es etwas umständlich ist sich durch ein unbekanntes Programm zu wühlen, deshalb gab ich als Titel auch die goto-Sprünge an. Aber wenn das alles so passt, werde ich auch meine zukünftigen Programme in dieser Art schreiben, momentan arbeite ich an einem Brute-Force ähnlichem Programm das verschiedene Algorithmen durch Angabe der ersten 2-5 unbekannten die Reihenfolge replizieren und weiterführen soll. Dazu arbeite ich mit Pi, diese Zahl fasziniert mich einfach. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":-O"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499312</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499312</guid><dc:creator><![CDATA[IfundSwitchBuddy]]></dc:creator><pubDate>Sat, 18 Jun 2016 11:00:39 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 11:18:24 GMT]]></title><description><![CDATA[<p>Th69 schrieb:</p>
<blockquote>
<p>Ist ja fast schon Kunst</p>
</blockquote>
<p>Fast? Das wird demnächst im Museum of Modern Art in New York ausgestellt! Gleich neben Jackson Pollock.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499313</guid><dc:creator><![CDATA[EOP]]></dc:creator><pubDate>Sat, 18 Jun 2016 11:18:24 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 11:23:40 GMT]]></title><description><![CDATA[<p>Was soll denn da speicherintensiv sein? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499314</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499314</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Sat, 18 Jun 2016 11:23:40 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 12:19:13 GMT]]></title><description><![CDATA[<p>EOP schrieb:</p>
<blockquote>
<p>Th69 schrieb:</p>
<blockquote>
<p>Ist ja fast schon Kunst</p>
</blockquote>
<p>Fast? Das wird demnächst im Museum of Modern Art in New York ausgestellt! Gleich neben Jackson Pollock.</p>
</blockquote>
<p>Haha ich danke dir, das bedeutet mir viel, ich bin ein absoluter Anfänger was das programmieren angeht, hab das ganze vor etwa einem Monat für mich entdeckt. Und ich hatte eben sorgen das die permanenten Sprünge im Programm Probleme mit dem Speicher verursachen, ich habe manchmal bemerkt das mein Smartphone beim compilieren und besonders bei der Ausführung des Programms ab und an hängen bleibt, kann auch sein das dass mit der app zusammenhängt auf der ich das ganze programmiert habe. Aber wie gesagt, danke für die netten Worte und auf eine hoffentlich gute Zusammenarbeit in der Zukunft <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499317</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499317</guid><dc:creator><![CDATA[IfundSwitchBuddy]]></dc:creator><pubDate>Sat, 18 Jun 2016 12:19:13 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 12:53:19 GMT]]></title><description><![CDATA[<p>Ich möchte dir die Freude nicht verderben, aber: Den Sarkasmus hast du echt nicht bemerkt?<br />
Das Programm ist absolut verwirrend, nicht nur, weil keine Codetags drum sinds. Goto benutzt man nicht bis gar nicht, das was du erst einmal brauchst sind Funktionen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499321</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499321</guid><dc:creator><![CDATA[Techel]]></dc:creator><pubDate>Sat, 18 Jun 2016 12:53:19 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 13:00:11 GMT]]></title><description><![CDATA[<p>Ja, mittlerweile habe ich es auch bemerkt, nachdem ich diesen Jackson gegoogelt habe, wieder so ein Forum in denen irgendwelche 9Gag-Egoverseuchten möchtegern trottel unterwegs sind, nur zu eurer Info : Intelligenz basiert auf Vermittlung und nicht auf zur schau Stellung, ihr pausenclowns.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499322</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499322</guid><dc:creator><![CDATA[IfundSwitchBuddy]]></dc:creator><pubDate>Sat, 18 Jun 2016 13:00:11 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 16:45:33 GMT]]></title><description><![CDATA[<p>IfundSwitchBuddy schrieb:</p>
<blockquote>
<p>Intelligenz basiert auf Vermittlung und nicht auf zur schau Stellung</p>
</blockquote>
<p>Wieso kriegst du dann beides nicht hin? Deine Vermittlung basiert auf schweren Verbrechen gegen das Nominalkompositum der deutschen Sprache, und zur Schau gestellt hast du bisher ein nicht mit Code-Tags formatierten Programmcode, welcher mehr Zeilenumbrüche enthält, als einem lieb sein müsste, und deine Naivität, dass du glaubst, ein Anfänger wie du könnte bezüglich Code-Eleganz noch Alteingesessenen was beibringen. Und außerdem plenkst du noch recht großzügig.</p>
<p>Oder du bist inzwischen der meiner Zählung nach vierte Versuch eines Trolls in dieser Woche, der sich daran stört, dass man sein Ego nicht liebkost.</p>
<p>Und für's Archiv: <code>goto</code> ist nicht vollkommen böse. Es gibt genug Anwendungsfälle, wo es die Lesbarkeit erhöhen kann. Dein Programm beinhaltet keinen einzigen davon, also würde ich <code>goto</code> erst mal ignorieren, wenn ich du wäre.</p>
<p>EDIT: Ich hoffe, ich habe das jetzt anständig vermittelt, und nicht nur zur Schau gestellt. :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499343</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499343</guid><dc:creator><![CDATA[dachschaden]]></dc:creator><pubDate>Sat, 18 Jun 2016 16:45:33 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sat, 18 Jun 2016 22:46:15 GMT]]></title><description><![CDATA[<p>IfundSwitchBuddy schrieb:</p>
<blockquote>
<p>Ja, mittlerweile habe ich es auch bemerkt, nachdem ich diesen Jackson gegoogelt hab</p>
</blockquote>
<p>Hahaha, du wirst es nicht glauben, aber manche Leute haben vielleicht etwas mehr Ahnung als du und evtl. gleichzeitig drei völlig unterschiedlichen Fachrichtungen studiert. Sowas soll es geben. In das Dilemma wirst du wohl kaum kommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499380</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499380</guid><dc:creator><![CDATA[EOP]]></dc:creator><pubDate>Sat, 18 Jun 2016 22:46:15 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sun, 19 Jun 2016 08:13:23 GMT]]></title><description><![CDATA[<p>Naja, man könnte den Sarkasmus doch auch einfach weglassen und eine normale Erklärung liefern, in anderen Forenabschnitten redet ihr euch doch auch den Mund fusselig. Aber wenn es darum geht einen Newbie auszulachen, rennt man gleich an die front und schmeißt alle Tomaten die man irgendwo finden kann. Das zeugt nicht gerade von reife, wenn man so, wie du es formuliert hast, &quot;in drei Fachrichtungen studiert hat.&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499396</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499396</guid><dc:creator><![CDATA[IfundSwitchBuddy]]></dc:creator><pubDate>Sun, 19 Jun 2016 08:13:23 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sun, 19 Jun 2016 08:47:47 GMT]]></title><description><![CDATA[<p>Dein Programm ist einfach so unterirdisch, dass sich kein Mensch ernsthaft damit beschäftigen will. Unformatierten Code lese ich sowieso nur ganz oberflächlich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499400</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499400</guid><dc:creator><![CDATA[EOP]]></dc:creator><pubDate>Sun, 19 Jun 2016 08:47:47 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sun, 19 Jun 2016 09:02:22 GMT]]></title><description><![CDATA[<p>Das stimmt allerdings. Mach beim nächsten Mal bitte Codetags drum.<br />
Hast du das Programm nun mit Funktionen verbessert?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499402</guid><dc:creator><![CDATA[Techel]]></dc:creator><pubDate>Sun, 19 Jun 2016 09:02:22 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sun, 19 Jun 2016 10:39:15 GMT]]></title><description><![CDATA[<p>Ich hab mir gerade beigebracht wie man Void-Funktionen sowie zeiger und Char Variablen verwendet, jetzt versuche ich das in meinen Rechner einzubauen, allerdings glaube ich das ich den Rechner neu bauen muss weil Funktionen so ganz anders funktionieren als goto Befehle. Aber trotzdem danke für den hinweis.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499406</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499406</guid><dc:creator><![CDATA[IfundSwitchBuddy]]></dc:creator><pubDate>Sun, 19 Jun 2016 10:39:15 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sun, 19 Jun 2016 10:50:49 GMT]]></title><description><![CDATA[<p>Und das nächste wäre dann Schleifen (while, for) zu verwenden, um komplett auf die goto-Anweisung zu verzichten (denn dies wird als <a href="https://de.wikipedia.org/wiki/Spaghetticode" rel="nofollow">Spaghetticode</a>-Programmierung angesehen).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499408</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Sun, 19 Jun 2016 10:50:49 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Wed, 22 Jun 2016 07:54:04 GMT]]></title><description><![CDATA[<p>Ich danke dir Th69. Eine frage habe ich jetzt noch, und zwar habe ich es jetzt fast geschafft, mein rechner ist so gut wie fertig, allerdings habe ich ein letztes problem : Ich habe in meinem Taschenrechner die Möglichkeit mit dem letzten ergebnis weiterzurechnen. Allerdings besteht jetzt das problem das ich aus der rechner() funktion das ergebnis übergeben muss. Das habe ich bereits getan um das ergebnis in der haupfunktion nach der ersten rechnung anzuzeigen. Nun möchte ich das ergebnis aber auch an den zweiten rechner übergeben, der mit dem letzten ergebnis weiterrechnet. Wenn ich das über das return ergebnis aus rechner() mache, wird allerdings auch die funktion nocheinmal ausgeführt. Meine frage : wie kann ich den wert einer funktion übergeben ohne die funktion auszuführen ? Danke euch schonmal im vorraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499725</guid><dc:creator><![CDATA[IfundSwitchBuddy]]></dc:creator><pubDate>Wed, 22 Jun 2016 07:54:04 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Wed, 22 Jun 2016 10:59:19 GMT]]></title><description><![CDATA[<p>Ich hoffe ich habe dich richtig verstanden: merke dir einfach das Ergebnis (d.h. den Rückgabewert) in einer Variablen und gebe diese dann an die Funktion weiter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499744</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499744</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Wed, 22 Jun 2016 10:59:19 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Wed, 22 Jun 2016 23:13:06 GMT]]></title><description><![CDATA[<pre><code>int funktion1( irgendwas_hier );
int funktion2( int irgendwas );

cout &lt;&lt; funktion2( funktion1( irgendwas_hier ) );
</code></pre>
<p>So geht das.</p>
<p>EDIT:<br />
Huch, hab ne Klammer vergessen. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2499858</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2499858</guid><dc:creator><![CDATA[EOP]]></dc:creator><pubDate>Wed, 22 Jun 2016 23:13:06 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Fri, 24 Jun 2016 16:22:43 GMT]]></title><description><![CDATA[<p>Ich kann funktionen in der variablen-erzeugung einer funktion aufrufen ? Ja cool, wieder was gelernt danke dir.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2500068</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2500068</guid><dc:creator><![CDATA[IfundSwitchBuddy]]></dc:creator><pubDate>Fri, 24 Jun 2016 16:22:43 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Fri, 24 Jun 2016 21:10:56 GMT]]></title><description><![CDATA[<p>IfundSwitchBuddy schrieb:</p>
<blockquote>
<p>Ja cool, wieder was gelernt danke dir.</p>
</blockquote>
<p>Ich lerne auch immer was Neues dazu oder Members bringen mich dazu längst vergessene Sachen wieder auszugraben. C/C++ zu lernen ist ein langwieriger und nie endender Prozess.</p>
<p>EDIT:<br />
Wobei MFC eine andere Geschichte ist. Wird irgendein Mod wohl demnächst verschieben. Abonniere RSS.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2500088</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2500088</guid><dc:creator><![CDATA[EOP]]></dc:creator><pubDate>Fri, 24 Jun 2016 21:10:56 GMT</pubDate></item><item><title><![CDATA[Reply to Goto-Sprünge Speicherintenisv: Komprimierung möglich ? on Sun, 26 Jun 2016 12:43:38 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/u100590" rel="nofollow">Martin Richter</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/f1" rel="nofollow">MFC (Visual C++)</a> in das Forum <a href="http://www.c-plusplus.net/forum/f15" rel="nofollow">C++ (alle ISO-Standards)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2500199</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2500199</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sun, 26 Jun 2016 12:43:38 GMT</pubDate></item></channel></rss>