<?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[C++ schreibweise]]></title><description><![CDATA[<p>wie kann ich</p>
<p>*<em>a <em>= x</em></em> noch anders schreiben?</p>
<p>a = a * x oder a * a = x ????</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/276192/c-schreibweise</link><generator>RSS for Node</generator><lastBuildDate>Wed, 26 Aug 2026 11:47:34 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/276192.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Oct 2010 17:40:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to C++ schreibweise on Thu, 28 Oct 2010 17:40:20 GMT]]></title><description><![CDATA[<p>wie kann ich</p>
<p>*<em>a <em>= x</em></em> noch anders schreiben?</p>
<p>a = a * x oder a * a = x ????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1972060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1972060</guid><dc:creator><![CDATA[bing bang]]></dc:creator><pubDate>Thu, 28 Oct 2010 17:40:20 GMT</pubDate></item><item><title><![CDATA[Reply to C++ schreibweise on Thu, 28 Oct 2010 17:43:23 GMT]]></title><description><![CDATA[<p>ersters</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1972064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1972064</guid><dc:creator><![CDATA[HighLigerBiMBam]]></dc:creator><pubDate>Thu, 28 Oct 2010 17:43:23 GMT</pubDate></item><item><title><![CDATA[Reply to C++ schreibweise on Thu, 28 Oct 2010 17:49:20 GMT]]></title><description><![CDATA[<p>HighLigerBiMBam schrieb:</p>
<blockquote>
<p>ersters</p>
</blockquote>
<p>Wobei es nicht unbedingt identisch mit dem Ausgangsausdruck sein muss, das hängt davon ab was a und x ist (Wobei man davon ausgehen sollte das zumindest das Ergebnis in der Regel identisch sein sollte, wobei der Ausgangsausdruck im Zweifel schneller sein kann, je nach Typ).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1972068</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1972068</guid><dc:creator><![CDATA[asc]]></dc:creator><pubDate>Thu, 28 Oct 2010 17:49:20 GMT</pubDate></item><item><title><![CDATA[Reply to C++ schreibweise on Thu, 28 Oct 2010 18:08:40 GMT]]></title><description><![CDATA[<p>asc schrieb:</p>
<blockquote>
<p>Wobei man davon ausgehen sollte das zumindest das Ergebnis in der Regel identisch sein sollte</p>
</blockquote>
<p>Das &quot;sollte&quot; solltest du betonen <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="😃"
    /> . Es zwingt niemand den Programmierer dazu, sich an die gängige Semantik zu halten.</p>
<p>Insofern gibt es strenggenommen natürlich keine identische Schreibweise für den Ausdruck, außer man zählt Sachen wie <code>a.operator*=(x);</code> als andere Schreibweise. Und dies funktoniert wiederum nur bei Klassentypen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1972077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1972077</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Thu, 28 Oct 2010 18:08:40 GMT</pubDate></item><item><title><![CDATA[Reply to C++ schreibweise on Thu, 28 Oct 2010 20:12:08 GMT]]></title><description><![CDATA[<p>Auch bei korrekter Operatorüberladung besteht der Unterschied, dass <code>a = a * x;</code> den Ausdruck <code>a</code> zwei Mal auswertet. Das ist natürlich nur relevant, falls Seiteneffekte im Spiel sind (was hier eher selten vorkommen dürfte). Ausserdem ist die kompakte Schreibweise bei überladenen Operatoren möglicherweise effizienter, weil weniger kopiert wird.</p>
<p>Ich verwende in solchen Fällen eigentlich immer arithmetische Zuweisungsoperatoren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1972111</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1972111</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Thu, 28 Oct 2010 20:12:08 GMT</pubDate></item></channel></rss>