<?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[Problem]]></title><description><![CDATA[<p>hallo leute,<br />
ich habe mit programmierung C++ abgefangen also ich treffe immer wieder manche schwerigkeiten. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> .<br />
Meine frage ist theoritisch und zwar :<br />
in einer elementfunktion wird der Ausdruck this-&gt;x verwandt. was ist die alternative schreibweise für den Ausdruck?<br />
danke im Voraus <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/topic/314371/problem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 01 Aug 2026 12:43:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/314371.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Feb 2013 15:27:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem on Thu, 28 Feb 2013 15:27:33 GMT]]></title><description><![CDATA[<p>hallo leute,<br />
ich habe mit programmierung C++ abgefangen also ich treffe immer wieder manche schwerigkeiten. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> .<br />
Meine frage ist theoritisch und zwar :<br />
in einer elementfunktion wird der Ausdruck this-&gt;x verwandt. was ist die alternative schreibweise für den Ausdruck?<br />
danke im Voraus <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/2302962</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2302962</guid><dc:creator><![CDATA[Azede]]></dc:creator><pubDate>Thu, 28 Feb 2013 15:27:33 GMT</pubDate></item><item><title><![CDATA[Reply to Problem on Thu, 28 Feb 2013 15:31:21 GMT]]></title><description><![CDATA[<p>Mmh?<br />
this weg lassen oder (*this).x?<br />
Wozu brauchst du das?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2302966</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2302966</guid><dc:creator><![CDATA[Jockelx]]></dc:creator><pubDate>Thu, 28 Feb 2013 15:31:21 GMT</pubDate></item><item><title><![CDATA[Reply to Problem on Thu, 28 Feb 2013 15:31:49 GMT]]></title><description><![CDATA[<p>Azede schrieb:</p>
<blockquote>
<p>hallo leute,<br />
ich habe mit programmierung C++ abgefangen also ich treffe immer wieder manche schwerigkeiten. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /> .<br />
Meine frage ist theoritisch und zwar :<br />
in einer elementfunktion wird der Ausdruck this-&gt;x verwandt. was ist die alternative schreibweise für den Ausdruck?<br />
danke im Voraus <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>
</blockquote>
<p>x</p>
<p>Wenn der Compiler einen Bezeichner wie x als lokale Variable nicht findet, versucht er mal, von selber ein this-&gt; davorzuschreiben.<br />
Daher ist</p>
<pre><code>Foo::f(int y){
   this-&gt;x=y;
}
</code></pre>
<p>gar nicht nötig.</p>
<pre><code>Foo::f(int y){
   x=y;
}
</code></pre>
<p>geht auch.</p>
<p>Aber Achtung, folgendes tut nicht das Erwünschte.</p>
<pre><code>Foo::f(int x){
   x=x;
}
</code></pre>
<p>Da kann man mit this-&gt; dafür sorgen, daß es keine Verwechslung gibt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2302967</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2302967</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Thu, 28 Feb 2013 15:31:49 GMT</pubDate></item></channel></rss>