<?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[Fehlermeldung &amp;quot;request for member &#96;del&#x27; in &#96;Conti&#x27;, which is of non-class type &#96;FGraph&amp;lt;Human&amp;gt; ()()&amp;quot;]]></title><description><![CDATA[<p>Huhu,</p>
<p>ich hab mir einen recht einfachen Code geschrieben um ein wenig mehr übung bei templates zu bekommen, steh aber jetzt irgendwie an weil sich das Programm nicht umwandeln lässt.</p>
<p>FGraph.h:</p>
<pre><code class="language-cpp">#ifndef FGRAPH_H_
#define FGRAPH_H_

// irgendwas irgendwann hier

template&lt;class T&gt;
class FGraph {
public:
	// int fwd_Iter;
	FGraph();
	~FGraph();

	void addDescendant(T x,T y);
	void addDirectDescendant(T x,T y);
	bool isDescendant(T x,T y);

	void del(T x);
	void print();
private:

};

#endif /*FGRAPH_H_*/
</code></pre>
<p>FGraph.cpp</p>
<pre><code class="language-cpp">#include &quot;FGraph.h&quot;

using namespace std;

// irgendwann irgendwas

template &lt;class T&gt;
FGraph&lt;T&gt;::FGraph(){}

template &lt;class T&gt;
FGraph&lt;T&gt;::~FGraph(){}

template &lt;class T&gt;
void FGraph&lt;T&gt;::del(T x){
	// nix
}
</code></pre>
<p>Human.h</p>
<pre><code class="language-cpp">#ifndef HUMAN_H_
#define HUMAN_H_
#include &lt;string&gt;

using namespace std;
// irgendwann irgendwas

class Human {
public:
	string m_Nationality;
	string m_Name;
	Human(string Name);
	~Human();
};

#endif /*HUMAN_H_*/
</code></pre>
<p>Human.cpp</p>
<pre><code class="language-cpp">#include &quot;Human.h&quot;

using namespace std;

// irgendwas irgendwann

Human::Human(string Name){
	m_Name = Name;
}
Human::~Human(){

}
</code></pre>
<p>main.cpp</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &quot;Human.h&quot;
#include &quot;FGraph.h&quot;
using namespace std;

int main(int argc, char *argv[]){

	// hier kommt irgendwann mal etwas her
	Human MaxM(&quot;Max&quot;);

	FGraph&lt;Human&gt; Conti();
	Conti.del(MaxM);

	return 0;
}
</code></pre>
<p>Bei mir kommt wenn ich das so umwandeln möchte der Fehler &quot;..\main.cpp:13: error: request for member `del' in `Conti', which is of non-class type `FGraph&lt;Human&gt; ()()'&quot;</p>
<p>könnte mir das einer erklären was ich falsch gemacht habe? Versteh es irgendwie nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/213997/fehlermeldung-quot-request-for-member-del-in-conti-which-is-of-non-class-type-fgraph-lt-human-gt-quot</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 20:57:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/213997.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 24 May 2008 13:13:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehlermeldung &amp;quot;request for member &#96;del&#x27; in &#96;Conti&#x27;, which is of non-class type &#96;FGraph&amp;lt;Human&amp;gt; ()()&amp;quot; on Sat, 24 May 2008 14:04:12 GMT]]></title><description><![CDATA[<p>Huhu,</p>
<p>ich hab mir einen recht einfachen Code geschrieben um ein wenig mehr übung bei templates zu bekommen, steh aber jetzt irgendwie an weil sich das Programm nicht umwandeln lässt.</p>
<p>FGraph.h:</p>
<pre><code class="language-cpp">#ifndef FGRAPH_H_
#define FGRAPH_H_

// irgendwas irgendwann hier

template&lt;class T&gt;
class FGraph {
public:
	// int fwd_Iter;
	FGraph();
	~FGraph();

	void addDescendant(T x,T y);
	void addDirectDescendant(T x,T y);
	bool isDescendant(T x,T y);

	void del(T x);
	void print();
private:

};

#endif /*FGRAPH_H_*/
</code></pre>
<p>FGraph.cpp</p>
<pre><code class="language-cpp">#include &quot;FGraph.h&quot;

using namespace std;

// irgendwann irgendwas

template &lt;class T&gt;
FGraph&lt;T&gt;::FGraph(){}

template &lt;class T&gt;
FGraph&lt;T&gt;::~FGraph(){}

template &lt;class T&gt;
void FGraph&lt;T&gt;::del(T x){
	// nix
}
</code></pre>
<p>Human.h</p>
<pre><code class="language-cpp">#ifndef HUMAN_H_
#define HUMAN_H_
#include &lt;string&gt;

using namespace std;
// irgendwann irgendwas

class Human {
public:
	string m_Nationality;
	string m_Name;
	Human(string Name);
	~Human();
};

#endif /*HUMAN_H_*/
</code></pre>
<p>Human.cpp</p>
<pre><code class="language-cpp">#include &quot;Human.h&quot;

using namespace std;

// irgendwas irgendwann

Human::Human(string Name){
	m_Name = Name;
}
Human::~Human(){

}
</code></pre>
<p>main.cpp</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &quot;Human.h&quot;
#include &quot;FGraph.h&quot;
using namespace std;

int main(int argc, char *argv[]){

	// hier kommt irgendwann mal etwas her
	Human MaxM(&quot;Max&quot;);

	FGraph&lt;Human&gt; Conti();
	Conti.del(MaxM);

	return 0;
}
</code></pre>
<p>Bei mir kommt wenn ich das so umwandeln möchte der Fehler &quot;..\main.cpp:13: error: request for member `del' in `Conti', which is of non-class type `FGraph&lt;Human&gt; ()()'&quot;</p>
<p>könnte mir das einer erklären was ich falsch gemacht habe? Versteh es irgendwie nicht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1515747</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1515747</guid><dc:creator><![CDATA[abzy]]></dc:creator><pubDate>Sat, 24 May 2008 14:04:12 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung &amp;quot;request for member &#96;del&#x27; in &#96;Conti&#x27;, which is of non-class type &#96;FGraph&amp;lt;Human&amp;gt; ()()&amp;quot; on Sat, 24 May 2008 13:29:05 GMT]]></title><description><![CDATA[<p>Mann kann Templates nicht wie normalen Programmcode in h- und cpp-Dateien aufteilen.</p>
<p>Beachte daher zuerst denn Punkt 5 der meistgestellten Fragen</p>
<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-151578.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-151578.html</a></p>
<p>und melde dich denn wieder, falls noch Fehler auftauchen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1515758</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1515758</guid><dc:creator><![CDATA[abzyBild]]></dc:creator><pubDate>Sat, 24 May 2008 13:29:05 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung &amp;quot;request for member &#96;del&#x27; in &#96;Conti&#x27;, which is of non-class type &#96;FGraph&amp;lt;Human&amp;gt; ()()&amp;quot; on Sat, 24 May 2008 13:41:28 GMT]]></title><description><![CDATA[<p>hab ich mir durchgelesen und glaube auch verstanden. Aber weiter geholfen hat es mir leider trotzdem nicht.</p>
<p>Ich hab jetzt die FGraph.cpp gelöscht und stattdessen in der FGraph.h ein {} hinter die Funktionen geschrieben (will ja nur mal das der Aufruf funktioniert.</p>
<p>Die &quot;neue&quot; FGraph.h schaut damit so aus:</p>
<pre><code class="language-cpp">#ifndef FGRAPH_H_
#define FGRAPH_H_

// irgendwas irgendwann hier

template&lt;class T&gt;
class FGraph {
public:
	// int fwd_Iter;
	FGraph(){};
	~FGraph(){};

	void addDescendant(T x,T y);
	void addDirectDescendant(T x,T y);
	bool isDescendant(T x,T y);

	void del(T x){};
	void print();
private:

};

#endif /*FGRAPH_H_*/
</code></pre>
<p>bekomm aber noch immer:</p>
<pre><code>..\main.cpp:13: error: request for member `del' in `Conti', which is of non-class type `FGraph&lt;Human&gt; ()()'
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1515770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1515770</guid><dc:creator><![CDATA[abzy]]></dc:creator><pubDate>Sat, 24 May 2008 13:41:28 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung &amp;quot;request for member &#96;del&#x27; in &#96;Conti&#x27;, which is of non-class type &#96;FGraph&amp;lt;Human&amp;gt; ()()&amp;quot; on Sat, 24 May 2008 14:01:51 GMT]]></title><description><![CDATA[<p>Hab es jetzt auch nochmal mit wirklicher Funktionsdekl. versucht:</p>
<pre><code class="language-cpp">#ifndef FGRAPH_H_
#define FGRAPH_H_

// irgendwas irgendwann hier

template&lt;class T&gt;
class FGraph {
public:
	// int fwd_Iter;
	FGraph(){};
	~FGraph(){};

	void addDescendant(T x,T y);
	void addDirectDescendant(T x,T y);
	bool isDescendant(T x,T y);

	void del(T x);
	void print();
private:

};

template &lt;class T&gt;
void FGraph&lt;T&gt;::del (T x)
{
  //irgendwann
}

#endif /*FGRAPH_H_*/
</code></pre>
<p>leider noch immer der selbe Fehler <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="😞"
    /></p>
<p>edit: hab auch über die suchfunktion nix zu dem fehler gefunden das mir weiter hilft.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1515774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1515774</guid><dc:creator><![CDATA[abzy]]></dc:creator><pubDate>Sat, 24 May 2008 14:01:51 GMT</pubDate></item><item><title><![CDATA[Reply to Fehlermeldung &amp;quot;request for member &#96;del&#x27; in &#96;Conti&#x27;, which is of non-class type &#96;FGraph&amp;lt;Human&amp;gt; ()()&amp;quot; on Sat, 24 May 2008 14:08:42 GMT]]></title><description><![CDATA[<p>Ok ich habs jetzt glaub ich von allein rausgefunden.</p>
<p>Ich weiß nicht genau warum ich () bei der deklaration von der Klasse FGraph geschrieben habe.</p>
<p>Ohne funktioniert das umwandeln jetzt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1515786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1515786</guid><dc:creator><![CDATA[abzy]]></dc:creator><pubDate>Sat, 24 May 2008 14:08:42 GMT</pubDate></item></channel></rss>