<?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[Friens-problem]]></title><description><![CDATA[<p>hallo zusammen!<br />
ich wollte mal bei einem programm die friends-deklaration ausprobieren, aber der debugger meldet immer fehler. Ich weiß nicht, woran das liegt! programmiere mit Borland c++Builder.</p>
<pre><code>//---------------------------------------------------------------------------
class TTest
{
 friend class TFriend;
 String b;
 void __fastcall Wort(String a);
};
//---------------------------------------------------------------------------
void __fastcall TTest::Wort(String a)
{
 b = &quot;hallo&quot; + a;
}
//---------------------------------------------------------------------------
class TFriend
{
 void __fastcall Nutzen(void);
};
//---------------------------------------------------------------------------
void __fastcall TFriend::Nutzen(void)
{
 Wort(&quot;Egon&quot;);
}
//---------------------------------------------------------------------------
</code></pre>
<p>hab ich da die falsche syntax verwendet? debugger meint: unbekanntes Symbol &quot;Wort&quot;</p>
<p>danke schonmal für die hilfe!!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/207503/friens-problem</link><generator>RSS for Node</generator><lastBuildDate>Thu, 20 Aug 2026 05:35:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/207503.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Mar 2008 15:54:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Friens-problem on Sat, 08 Mar 2008 15:54:03 GMT]]></title><description><![CDATA[<p>hallo zusammen!<br />
ich wollte mal bei einem programm die friends-deklaration ausprobieren, aber der debugger meldet immer fehler. Ich weiß nicht, woran das liegt! programmiere mit Borland c++Builder.</p>
<pre><code>//---------------------------------------------------------------------------
class TTest
{
 friend class TFriend;
 String b;
 void __fastcall Wort(String a);
};
//---------------------------------------------------------------------------
void __fastcall TTest::Wort(String a)
{
 b = &quot;hallo&quot; + a;
}
//---------------------------------------------------------------------------
class TFriend
{
 void __fastcall Nutzen(void);
};
//---------------------------------------------------------------------------
void __fastcall TFriend::Nutzen(void)
{
 Wort(&quot;Egon&quot;);
}
//---------------------------------------------------------------------------
</code></pre>
<p>hab ich da die falsche syntax verwendet? debugger meint: unbekanntes Symbol &quot;Wort&quot;</p>
<p>danke schonmal für die hilfe!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1470561</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1470561</guid><dc:creator><![CDATA[sammynammy]]></dc:creator><pubDate>Sat, 08 Mar 2008 15:54:03 GMT</pubDate></item><item><title><![CDATA[Reply to Friens-problem on Sat, 08 Mar 2008 15:57:01 GMT]]></title><description><![CDATA[<p>gehört ins VCL forum!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1470563</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1470563</guid><dc:creator><![CDATA[aaaaa]]></dc:creator><pubDate>Sat, 08 Mar 2008 15:57:01 GMT</pubDate></item><item><title><![CDATA[Reply to Friens-problem on Sat, 08 Mar 2008 16:07:31 GMT]]></title><description><![CDATA[<p>Du mußt schon eine Instanz von TTest erzeugen und diese dann verwenden:</p>
<pre><code class="language-cpp">TTest test;
test.Wort(&quot;Egon&quot;);
</code></pre>
<p>(oder aber alternativ die Methode als &quot;static&quot; deklarieren)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1470568</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1470568</guid><dc:creator><![CDATA[~friend]]></dc:creator><pubDate>Sat, 08 Mar 2008 16:07:31 GMT</pubDate></item><item><title><![CDATA[Reply to Friens-problem on Mon, 10 Mar 2008 17:59:11 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile-var-mode-is-viewprofile-and-u-is-403.html" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-2.html" rel="nofollow">VCL (C++ Builder)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39405.html" 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/1471634</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1471634</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 10 Mar 2008 17:59:11 GMT</pubDate></item></channel></rss>