<?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[Kann mir jemand sagen ob dieser Quellcode richtig ist im Bezug auf die Frage!!]]></title><description><![CDATA[<p>Nachdem der Anwender zwei Zahlen eingegeben hat, gibt das Programm die größere Zahl aus.</p>
<p>{<br />
float $zahl1;<br />
float zahl2;  
cout<<"Bitte geben Sie eine Zahl ein und bestaetigen Sie mit Enter: "<<"\\n";  
cin>>zahl1;<br />
cout&lt;&lt;&quot;Bitte geben Sie nun die zweite Zahl ein und bestaetigen Sie wiederrum mit Enter: &quot;&lt;&lt;&quot;\n&quot;;<br />
cin&gt;&gt;<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>z</mi><mi>a</mi><mi>h</mi><mi>l</mi><mn>2</mn><mo separator="true">;</mo><mi>i</mi><mi>f</mi><mo>(</mo></mrow><annotation encoding="application/x-tex">zahl2;  
if(</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.04398em;">z</span><span class="mord mathit">a</span><span class="mord mathit">h</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathrm">2</span><span class="mpunct">;</span><span class="mord mathit">i</span><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mopen">(</span></span></span></span>zahl1&gt;zahl2){  
cout<<"Die groessere Zahl wird ihnen ausgegeben: "<<zahl1&lt;&lt;&quot;\n&quot;;<br />
}else{<br />
cout&lt;&lt;&quot;Die groessere Zahl wir Ihnen ausgegeben: &quot;&lt;&lt;$zahl2&lt;&lt;&quot;\n&quot;;<br />
}</p>
<p>}</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/276960/kann-mir-jemand-sagen-ob-dieser-quellcode-richtig-ist-im-bezug-auf-die-frage</link><generator>RSS for Node</generator><lastBuildDate>Wed, 26 Aug 2026 04:23:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/276960.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Nov 2010 19:16:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kann mir jemand sagen ob dieser Quellcode richtig ist im Bezug auf die Frage!! on Wed, 10 Nov 2010 19:16:05 GMT]]></title><description><![CDATA[<p>Nachdem der Anwender zwei Zahlen eingegeben hat, gibt das Programm die größere Zahl aus.</p>
<p>{<br />
float $zahl1;<br />
float zahl2;  
cout<<"Bitte geben Sie eine Zahl ein und bestaetigen Sie mit Enter: "<<"\\n";  
cin>>zahl1;<br />
cout&lt;&lt;&quot;Bitte geben Sie nun die zweite Zahl ein und bestaetigen Sie wiederrum mit Enter: &quot;&lt;&lt;&quot;\n&quot;;<br />
cin&gt;&gt;<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>z</mi><mi>a</mi><mi>h</mi><mi>l</mi><mn>2</mn><mo separator="true">;</mo><mi>i</mi><mi>f</mi><mo>(</mo></mrow><annotation encoding="application/x-tex">zahl2;  
if(</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mord mathit" style="margin-right:0.04398em;">z</span><span class="mord mathit">a</span><span class="mord mathit">h</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathrm">2</span><span class="mpunct">;</span><span class="mord mathit">i</span><span class="mord mathit" style="margin-right:0.10764em;">f</span><span class="mopen">(</span></span></span></span>zahl1&gt;zahl2){  
cout<<"Die groessere Zahl wird ihnen ausgegeben: "<<zahl1&lt;&lt;&quot;\n&quot;;<br />
}else{<br />
cout&lt;&lt;&quot;Die groessere Zahl wir Ihnen ausgegeben: &quot;&lt;&lt;$zahl2&lt;&lt;&quot;\n&quot;;<br />
}</p>
<p>}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1978659</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1978659</guid><dc:creator><![CDATA[tobifeli]]></dc:creator><pubDate>Wed, 10 Nov 2010 19:16:05 GMT</pubDate></item><item><title><![CDATA[Reply to Kann mir jemand sagen ob dieser Quellcode richtig ist im Bezug auf die Frage!! on Wed, 10 Nov 2010 19:18:38 GMT]]></title><description><![CDATA[<p>Codetags bitte benutzen!</p>
<p>Warum stehen da dollars? Alle wegmachen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1978661</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1978661</guid><dc:creator><![CDATA[HighLigerBiMBam]]></dc:creator><pubDate>Wed, 10 Nov 2010 19:18:38 GMT</pubDate></item><item><title><![CDATA[Reply to Kann mir jemand sagen ob dieser Quellcode richtig ist im Bezug auf die Frage!! on Wed, 10 Nov 2010 19:18:53 GMT]]></title><description><![CDATA[<p>Soweit ich sehe, ist der richtig.<br />
Aber nur für den ausgewählte Compiler. Bei normalen Compilern mußt Du die $s vor den Variablennamen alle wegmachen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1978662</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1978662</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Wed, 10 Nov 2010 19:18:53 GMT</pubDate></item><item><title><![CDATA[Reply to Kann mir jemand sagen ob dieser Quellcode richtig ist im Bezug auf die Frage!! on Wed, 10 Nov 2010 19:20:15 GMT]]></title><description><![CDATA[<p>Wenn wir schon dabei sind...</p>
<p>Was bedeuten die $-Zeichen? Was haben die für einen Effekt? Und bei welchen bekannten Compilern?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1978663</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1978663</guid><dc:creator><![CDATA[icarus2]]></dc:creator><pubDate>Wed, 10 Nov 2010 19:20:15 GMT</pubDate></item><item><title><![CDATA[Reply to Kann mir jemand sagen ob dieser Quellcode richtig ist im Bezug auf die Frage!! on Wed, 10 Nov 2010 19:22:08 GMT]]></title><description><![CDATA[<p>volkard schrieb:</p>
<blockquote>
<p>Soweit ich sehe, ist der richtig.<br />
Aber nur für den ausgewählte Compiler. Bei normalen Compilern mußt Du die $s vor den Variablennamen alle wegmachen.</p>
</blockquote>
<p>Vielen Dank !!!Einen schönen abend dir noch!!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1978664</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1978664</guid><dc:creator><![CDATA[tobifeli]]></dc:creator><pubDate>Wed, 10 Nov 2010 19:22:08 GMT</pubDate></item><item><title><![CDATA[Reply to Kann mir jemand sagen ob dieser Quellcode richtig ist im Bezug auf die Frage!! on Wed, 10 Nov 2010 19:23:46 GMT]]></title><description><![CDATA[<p>icarus2 schrieb:</p>
<blockquote>
<p>Was bedeuten die $-Zeichen?</p>
</blockquote>
<p>Nix.</p>
<p>icarus2 schrieb:</p>
<blockquote>
<p>Was haben die für einen Effekt?</p>
</blockquote>
<p>Keinen.</p>
<p>icarus2 schrieb:</p>
<blockquote>
<p>Und bei welchen bekannten Compilern?</p>
</blockquote>
<p>gcc.<br />
<a href="http://gcc.gnu.org/onlinedocs/gcc/Dollar-Signs.html" rel="nofollow">http://gcc.gnu.org/onlinedocs/gcc/Dollar-Signs.html</a><br />
<a href="http://cboard.cprogramming.com/linux-programming/10190-dollar-sign-legal-gcc.html" rel="nofollow">http://cboard.cprogramming.com/linux-programming/10190-dollar-sign-legal-gcc.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1978667</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1978667</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Wed, 10 Nov 2010 19:23:46 GMT</pubDate></item><item><title><![CDATA[Reply to Kann mir jemand sagen ob dieser Quellcode richtig ist im Bezug auf die Frage!! on Wed, 10 Nov 2010 19:38:55 GMT]]></title><description><![CDATA[<p>Sicher hat es einen Effekt! Der Code kann nicht auf andere Compiler ohne Änderungen portiert werden <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/1978674</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1978674</guid><dc:creator><![CDATA[HighLigerBiMBam]]></dc:creator><pubDate>Wed, 10 Nov 2010 19:38:55 GMT</pubDate></item><item><title><![CDATA[Reply to Kann mir jemand sagen ob dieser Quellcode richtig ist im Bezug auf die Frage!! on Wed, 10 Nov 2010 20:06:54 GMT]]></title><description><![CDATA[<p>Haha</p>
<p>Ich schliesse daraus mal, dass man nie ein $ vor einer Variablen setzen sollte ^^</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1978690</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1978690</guid><dc:creator><![CDATA[icarus2]]></dc:creator><pubDate>Wed, 10 Nov 2010 20:06:54 GMT</pubDate></item><item><title><![CDATA[Reply to Kann mir jemand sagen ob dieser Quellcode richtig ist im Bezug auf die Frage!! on Wed, 10 Nov 2010 22:37:29 GMT]]></title><description><![CDATA[<p>Nicht zwangsweise...</p>
<p>Prinzipiell ist es durchaus möglich, lediglich den GCC als Compiler zu unterstützen, da es diesen nunmal für so ziemlich jedes Betriebssystem gibt.</p>
<p>Auf diese Weise könnte man aktiv gegen den Einsatz proprietärer Compiler wie MSVC oder BCC vorgehen :p (ja ok, wäre ein schwacher Versuch, aber egal xD)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1978756</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1978756</guid><dc:creator><![CDATA[DrakoXP]]></dc:creator><pubDate>Wed, 10 Nov 2010 22:37:29 GMT</pubDate></item><item><title><![CDATA[Reply to Kann mir jemand sagen ob dieser Quellcode richtig ist im Bezug auf die Frage!! on Thu, 11 Nov 2010 13:51:16 GMT]]></title><description><![CDATA[<p>MSVC hat aber auch nix gegen die Verwendung von $.. (zumindest 2008 &amp; 2010)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1978959</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1978959</guid><dc:creator><![CDATA[NEO.PIXEL]]></dc:creator><pubDate>Thu, 11 Nov 2010 13:51:16 GMT</pubDate></item></channel></rss>