<?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[Templates Erben funktioniert nicht]]></title><description><![CDATA[<p>Hallo,</p>
<p>wir wollten eine virtuelle Klass schreiben von der dann später mehrere Klassen erben sollen und die Methoden überschreiben. Leider funktioniert dies gar nicht, da die erbende Klasse angeblich abstrakt ist, obwohl wir der Meinung sind alle rein virtuellen Funktionen überschrieben zu haben.</p>
<p>Erstmal zum Code:</p>
<p>main.cpp</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;iostream&gt;
#include &quot;header/calculator.h&quot;
#include &quot;stdio.h&quot;
#include &quot;header/Integer.h&quot;

using namespace std;

auto main()
{
       AllocConsole();
	freopen(&quot;conin$&quot;, &quot;r&quot;, stdin);
	freopen(&quot;conout$&quot;, &quot;w&quot;, stdout);
	freopen(&quot;conout$&quot;, &quot;w&quot;, stderr);
	printf(&quot;Debugging Window:\n&quot;);

	Calculator&lt;Integer&gt; calc;
	Integer i(2);
	Integer g(3);
	calc.sum(i, g);
	cout &lt;&lt; result.getInt();
}
</code></pre>
<p>arithmetic.h</p>
<pre><code>#pragma once
using namespace std;

template&lt;class V&gt;
class Arithmetic {

public:
	/*
	@returns V: sum of the values
	*/
	virtual V&amp; sum(V&amp; arg0) = 0;
};
</code></pre>
<p>integer.h</p>
<pre><code>#pragma once
#include &quot;arithmetic.h&quot;

using namespace std;

class Integer : public Arithmetic&lt;Integer&gt;
{

private:

public:
	int value;
	Integer(int value);
	int Integer::getInt();
};
</code></pre>
<p>integer.cpp</p>
<pre><code>#include &quot;header/Integer.h&quot;

Integer::Integer(int value)
{
	this-&gt;value = value;
}

int Integer::getInt()
{
	return this-&gt;value;
}

//hier sind wir ganz unsicher, ob die Vererbung so correkt ist. Haben schon viel hier 
//ausprobiert. So findet VS wenigstens die richtige deklaration. Und es gibt keinen Fehler
//bei &quot;return result&quot;
template&lt;class V&gt;
V&amp; Arithmetic&lt;V&gt;::sum(V&amp; arg0)
{
	int i = this-&gt;value + arg0.getInt();
	Integer result(i);
	return result;
}
</code></pre>
<p>calculator.h</p>
<pre><code>using namespace std;

template&lt;class V&gt;
class Calculator {
public:

	/*
	@returns V: sum of the values
	*/
	V sum(V a, V b);

};
</code></pre>
<p>calculator.cpp</p>
<pre><code>#include &quot;header\calculator.h&quot;

template&lt;class V&gt;
V Calculator&lt;V&gt;::sum(V a, V b)
{
	V result = a.Arithmetic&lt;V&gt;::sum(b);
	return result;
}
</code></pre>
<p>Fehlermeldungen:<br />
Schweregrad Fehler<br />
Code C2259<br />
Beschreibung &quot;Integer&quot;: Instanz von abstrakter Klasse kann nicht erstellt werden</p>
<p>Wir sind leider inzwischen komplett überfragt und bräuchten dringend Hilfe. Dafür schon mal danke.</p>
<p>Mfg<br />
Ken</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/334613/templates-erben-funktioniert-nicht</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 07:58:08 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/334613.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Sep 2015 15:46:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Templates Erben funktioniert nicht on Sun, 27 Sep 2015 15:46:36 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wir wollten eine virtuelle Klass schreiben von der dann später mehrere Klassen erben sollen und die Methoden überschreiben. Leider funktioniert dies gar nicht, da die erbende Klasse angeblich abstrakt ist, obwohl wir der Meinung sind alle rein virtuellen Funktionen überschrieben zu haben.</p>
<p>Erstmal zum Code:</p>
<p>main.cpp</p>
<pre><code>#include &lt;windows.h&gt;
#include &lt;iostream&gt;
#include &quot;header/calculator.h&quot;
#include &quot;stdio.h&quot;
#include &quot;header/Integer.h&quot;

using namespace std;

auto main()
{
       AllocConsole();
	freopen(&quot;conin$&quot;, &quot;r&quot;, stdin);
	freopen(&quot;conout$&quot;, &quot;w&quot;, stdout);
	freopen(&quot;conout$&quot;, &quot;w&quot;, stderr);
	printf(&quot;Debugging Window:\n&quot;);

	Calculator&lt;Integer&gt; calc;
	Integer i(2);
	Integer g(3);
	calc.sum(i, g);
	cout &lt;&lt; result.getInt();
}
</code></pre>
<p>arithmetic.h</p>
<pre><code>#pragma once
using namespace std;

template&lt;class V&gt;
class Arithmetic {

public:
	/*
	@returns V: sum of the values
	*/
	virtual V&amp; sum(V&amp; arg0) = 0;
};
</code></pre>
<p>integer.h</p>
<pre><code>#pragma once
#include &quot;arithmetic.h&quot;

using namespace std;

class Integer : public Arithmetic&lt;Integer&gt;
{

private:

public:
	int value;
	Integer(int value);
	int Integer::getInt();
};
</code></pre>
<p>integer.cpp</p>
<pre><code>#include &quot;header/Integer.h&quot;

Integer::Integer(int value)
{
	this-&gt;value = value;
}

int Integer::getInt()
{
	return this-&gt;value;
}

//hier sind wir ganz unsicher, ob die Vererbung so correkt ist. Haben schon viel hier 
//ausprobiert. So findet VS wenigstens die richtige deklaration. Und es gibt keinen Fehler
//bei &quot;return result&quot;
template&lt;class V&gt;
V&amp; Arithmetic&lt;V&gt;::sum(V&amp; arg0)
{
	int i = this-&gt;value + arg0.getInt();
	Integer result(i);
	return result;
}
</code></pre>
<p>calculator.h</p>
<pre><code>using namespace std;

template&lt;class V&gt;
class Calculator {
public:

	/*
	@returns V: sum of the values
	*/
	V sum(V a, V b);

};
</code></pre>
<p>calculator.cpp</p>
<pre><code>#include &quot;header\calculator.h&quot;

template&lt;class V&gt;
V Calculator&lt;V&gt;::sum(V a, V b)
{
	V result = a.Arithmetic&lt;V&gt;::sum(b);
	return result;
}
</code></pre>
<p>Fehlermeldungen:<br />
Schweregrad Fehler<br />
Code C2259<br />
Beschreibung &quot;Integer&quot;: Instanz von abstrakter Klasse kann nicht erstellt werden</p>
<p>Wir sind leider inzwischen komplett überfragt und bräuchten dringend Hilfe. Dafür schon mal danke.</p>
<p>Mfg<br />
Ken</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2469184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2469184</guid><dc:creator><![CDATA[Ken 0]]></dc:creator><pubDate>Sun, 27 Sep 2015 15:46:36 GMT</pubDate></item><item><title><![CDATA[Reply to Templates Erben funktioniert nicht on Sun, 27 Sep 2015 16:16:13 GMT]]></title><description><![CDATA[<p>Der Compiler weiss ja gar nicht, was</p>
<pre><code>virtual V&amp; sum(V&amp; arg0) = 0
</code></pre>
<p>machen soll, da du diese ja weder in der Basisklasse &quot;Arithmetic noch in der abgeleiteten Klasse &quot;Integer&quot; implementiert hast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2469186</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2469186</guid><dc:creator><![CDATA[Burkhi]]></dc:creator><pubDate>Sun, 27 Sep 2015 16:16:13 GMT</pubDate></item><item><title><![CDATA[Reply to Templates Erben funktioniert nicht on Sun, 27 Sep 2015 16:20:29 GMT]]></title><description><![CDATA[<p>Dies sollte unsere Implementierung in der abgeleiten Klasse sein.<br />
Ich weis nur wie man es in Java aufschreibt, wo natürlich dann alle V durch Integer ersetzt werden müssten. Jedoch in c++ haut es momentan nicht hin.<br />
Wie würde den die implementierung aussehen?</p>
<pre><code>template&lt;class V&gt;
V&amp; Arithmetic&lt;V&gt;::sum(V&amp; arg0)
{
    int i = this-&gt;value + arg0.getInt();
    Integer result(i);
    return result;
}
</code></pre>
<p>MFG<br />
Ken</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2469189</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2469189</guid><dc:creator><![CDATA[Ken 0]]></dc:creator><pubDate>Sun, 27 Sep 2015 16:20:29 GMT</pubDate></item><item><title><![CDATA[Reply to Templates Erben funktioniert nicht on Sun, 27 Sep 2015 16:44:45 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>bisher hast du eine freie (Template-)Funktion definiert.<br />
Für die Ableitung müßtest du diese in der Klasse Integer deklarieren:</p>
<pre><code class="language-cpp">class Integer : public Arithmetic&lt;Integer&gt;
{
  public:
    // ...

  Integer&amp; sum(Integer&amp; arg0);
};
</code></pre>
<p>Und dann noch entsprechend in der Source-Datei definieren:</p>
<pre><code class="language-cpp">Integer&amp; Integer::sum(Integer&amp; arg0)
{
  // ...
}
</code></pre>
<p>So wäre es syntaktisch richtig, auch wenn es m.E. bessere Design-Möglichkeiten gibt (aber ich nehme mal an, daß dies eine Übungsaufgabe ist?).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2469193</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2469193</guid><dc:creator><![CDATA[Th69]]></dc:creator><pubDate>Sun, 27 Sep 2015 16:44:45 GMT</pubDate></item><item><title><![CDATA[Reply to Templates Erben funktioniert nicht on Sun, 27 Sep 2015 16:52:21 GMT]]></title><description><![CDATA[<p>So ich habe die Implementierung dann so weit übernommen und auch noch beim<br />
Rückgabewet die Referenzierung entfernt.<br />
Jedoch steht mir jetzt noch ein Linkerfehler im weg.</p>
<p>Ja dieses Programm ist eine Übung. <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>
<p>integer.h</p>
<pre><code>#pragma once
#include &quot;arithmetic.h&quot;

using namespace std;

class Integer : public Arithmetic&lt;Integer&gt;
{

private:

public:
     int value;
     Integer(int value);
     int getInt();
     Integer sum(Integer&amp; arg0);
};
</code></pre>
<p>integer.cpp</p>
<pre><code>#include &quot;header/Integer.h&quot;

Integer::Integer(int value)
{
	this-&gt;value = value;
}

int Integer::getInt()
{
    return this-&gt;value;
}

Integer Integer::sum(Integer&amp; arg0)
{
	int i = this-&gt;value + arg0.getInt();
	Integer result(i);
	return result;
}
</code></pre>
<p>Fehler:<br />
LNK2019 Verweis auf nicht aufgelöstes externes Symbol &quot;&quot;public: class Integer __cdecl Calculator&lt;class Integer&gt;::sum(class Integer,class Integer)&quot; (?sum@?$Calculator@VInteger@@@@QEAA?AVInteger@@V2@0@Z)&quot; in Funktion &quot;main&quot;. PoketCalculator C:\Users\Ken Moller\Documents\Visual Studio 2015\Projects\PoketCalculator\PoketCalculator\main.obj 1</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2469196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2469196</guid><dc:creator><![CDATA[Ken 0]]></dc:creator><pubDate>Sun, 27 Sep 2015 16:52:21 GMT</pubDate></item><item><title><![CDATA[Reply to Templates Erben funktioniert nicht on Sun, 27 Sep 2015 16:58:57 GMT]]></title><description><![CDATA[<p>Du musst die Definition von Calculator::sum in den Header packen. Schließlich wird bei jedem aufruf dieser methode eine neuer methodenrumpf mit den entsprechenden template-typen generiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2469197</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2469197</guid><dc:creator><![CDATA[Techel]]></dc:creator><pubDate>Sun, 27 Sep 2015 16:58:57 GMT</pubDate></item><item><title><![CDATA[Reply to Templates Erben funktioniert nicht on Sun, 27 Sep 2015 18:07:46 GMT]]></title><description><![CDATA[<p>Leider hat das verlagern der Definition nichts gebracht.</p>
<p>Der neue Header sieht wie folgt aus und die cpp ist gelöscht.</p>
<pre><code>#pragma once
#ifndef CALCULATOR_H
#define	CALCULATOR_H

using namespace std;

template&lt;class V&gt;
class Calculator {
public:

	/*
	@returns V: sum of the values
	*/
	V sum(V a, V b)
	{
		V result = a.Arithmetic&lt;V&gt;::sum(b);
		return result;
	}

};
</code></pre>
<p>Fehler LNK2019 Verweis auf nicht aufgelöstes externes Symbol &quot;&quot;public: virtual class Integer __cdecl Arithmetic&lt;class Integer&gt;::sum(class Integer &amp;)&quot; (?sum@?<span class="katex"><span class="katex-mathml"><math><semantics><mrow><mi>A</mi><mi>r</mi><mi>i</mi><mi>t</mi><mi>h</mi><mi>m</mi><mi>e</mi><mi>t</mi><mi>i</mi><mi>c</mi><mi mathvariant="normal">@</mi><mi>V</mi><mi>I</mi><mi>n</mi><mi>t</mi><mi>e</mi><mi>g</mi><mi>e</mi><mi>r</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>U</mi><mi>E</mi><mi>A</mi><mi>A</mi><mo>?</mo><mi>A</mi><mi>V</mi><mi>I</mi><mi>n</mi><mi>t</mi><mi>e</mi><mi>g</mi><mi>e</mi><mi>r</mi><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>A</mi><mi>E</mi><mi>A</mi><mi>V</mi><mn>2</mn><mi mathvariant="normal">@</mi><mi mathvariant="normal">@</mi><mi>Z</mi><mo>)</mo><mi mathvariant="normal">&quot;</mi><mi>i</mi><mi>n</mi><mi>F</mi><mi>u</mi><mi>n</mi><mi>k</mi><mi>t</mi><mi>i</mi><mi>o</mi><mi>n</mi><mi mathvariant="normal">&quot;</mi><mi mathvariant="normal">&quot;</mi><mi>p</mi><mi>u</mi><mi>b</mi><mi>l</mi><mi>i</mi><mi>c</mi><mo>:</mo><mi>c</mi><mi>l</mi><mi>a</mi><mi>s</mi><mi>s</mi><mi>I</mi><mi>n</mi><mi>t</mi><mi>e</mi><mi>g</mi><mi>e</mi><mi>r</mi><mi mathvariant="normal">_</mi><mi mathvariant="normal">_</mi><mi>c</mi><mi>d</mi><mi>e</mi><mi>c</mi><mi>l</mi><mi>C</mi><mi>a</mi><mi>l</mi><mi>c</mi><mi>u</mi><mi>l</mi><mi>a</mi><mi>t</mi><mi>o</mi><mi>r</mi><mo>&lt;</mo><mi>c</mi><mi>l</mi><mi>a</mi><mi>s</mi><mi>s</mi><mi>I</mi><mi>n</mi><mi>t</mi><mi>e</mi><mi>g</mi><mi>e</mi><mi>r</mi><mo>&gt;</mo><mo>:</mo><mo>:</mo><mi>s</mi><mi>u</mi><mi>m</mi><mo>(</mo><mi>c</mi><mi>l</mi><mi>a</mi><mi>s</mi><mi>s</mi><mi>I</mi><mi>n</mi><mi>t</mi><mi>e</mi><mi>g</mi><mi>e</mi><mi>r</mi><mo separator="true">,</mo><mi>c</mi><mi>l</mi><mi>a</mi><mi>s</mi><mi>s</mi><mi>I</mi><mi>n</mi><mi>t</mi><mi>e</mi><mi>g</mi><mi>e</mi><mi>r</mi><mo>)</mo><mi mathvariant="normal">&quot;</mi><mo>(</mo><mo>?</mo><mi>s</mi><mi>u</mi><mi>m</mi><mi mathvariant="normal">@</mi><mo>?</mo></mrow><annotation encoding="application/x-tex">Arithmetic@VInteger@@@@UEAA?AVInteger@@AEAV2@@Z)&quot; in Funktion &quot;&quot;public: class Integer \_\_cdecl Calculator&lt;class Integer&gt;::sum(class Integer,class Integer)&quot; (?sum@?</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:1.06em;vertical-align:-0.31em;"></span><span class="base textstyle uncramped"><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathit">i</span><span class="mord mathit">t</span><span class="mord mathit">h</span><span class="mord mathit">m</span><span class="mord mathit">e</span><span class="mord mathit">t</span><span class="mord mathit">i</span><span class="mord mathit">c</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mord mathit" style="margin-right:0.07847em;">I</span><span class="mord mathit">n</span><span class="mord mathit">t</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.10903em;">U</span><span class="mord mathit" style="margin-right:0.05764em;">E</span><span class="mord mathit">A</span><span class="mord mathit">A</span><span class="mclose">?</span><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mord mathit" style="margin-right:0.07847em;">I</span><span class="mord mathit">n</span><span class="mord mathit">t</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.05764em;">E</span><span class="mord mathit">A</span><span class="mord mathit" style="margin-right:0.22222em;">V</span><span class="mord mathrm">2</span><span class="mord mathrm">@</span><span class="mord mathrm">@</span><span class="mord mathit" style="margin-right:0.07153em;">Z</span><span class="mclose">)</span><span class="mord mathrm">&quot;</span><span class="mord mathit">i</span><span class="mord mathit">n</span><span class="mord mathit" style="margin-right:0.13889em;">F</span><span class="mord mathit">u</span><span class="mord mathit">n</span><span class="mord mathit" style="margin-right:0.03148em;">k</span><span class="mord mathit">t</span><span class="mord mathit">i</span><span class="mord mathit">o</span><span class="mord mathit">n</span><span class="mord mathrm">&quot;</span><span class="mord mathrm">&quot;</span><span class="mord mathit">p</span><span class="mord mathit">u</span><span class="mord mathit">b</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">i</span><span class="mord mathit">c</span><span class="mrel">:</span><span class="mord mathit">c</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">a</span><span class="mord mathit">s</span><span class="mord mathit">s</span><span class="mord mathit" style="margin-right:0.07847em;">I</span><span class="mord mathit">n</span><span class="mord mathit">t</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathrm" style="margin-right:0.02778em;">_</span><span class="mord mathit">c</span><span class="mord mathit">d</span><span class="mord mathit">e</span><span class="mord mathit">c</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit" style="margin-right:0.07153em;">C</span><span class="mord mathit">a</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">c</span><span class="mord mathit">u</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">a</span><span class="mord mathit">t</span><span class="mord mathit">o</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mrel">&lt;</span><span class="mord mathit">c</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">a</span><span class="mord mathit">s</span><span class="mord mathit">s</span><span class="mord mathit" style="margin-right:0.07847em;">I</span><span class="mord mathit">n</span><span class="mord mathit">t</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mrel">&gt;</span><span class="mrel">:</span><span class="mrel">:</span><span class="mord mathit">s</span><span class="mord mathit">u</span><span class="mord mathit">m</span><span class="mopen">(</span><span class="mord mathit">c</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">a</span><span class="mord mathit">s</span><span class="mord mathit">s</span><span class="mord mathit" style="margin-right:0.07847em;">I</span><span class="mord mathit">n</span><span class="mord mathit">t</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mpunct">,</span><span class="mord mathit">c</span><span class="mord mathit" style="margin-right:0.01968em;">l</span><span class="mord mathit">a</span><span class="mord mathit">s</span><span class="mord mathit">s</span><span class="mord mathit" style="margin-right:0.07847em;">I</span><span class="mord mathit">n</span><span class="mord mathit">t</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.03588em;">g</span><span class="mord mathit">e</span><span class="mord mathit" style="margin-right:0.02778em;">r</span><span class="mclose">)</span><span class="mord mathrm">&quot;</span><span class="mopen">(</span><span class="mclose">?</span><span class="mord mathit">s</span><span class="mord mathit">u</span><span class="mord mathit">m</span><span class="mord mathrm">@</span><span class="mclose">?</span></span></span></span>Calculator@VInteger@@@@QEAA?AVInteger@@V2@0@Z)&quot;. PoketCalculator C:\Users\Ken Moller\Documents\Visual Studio 2015\Projects\PoketCalculator\PoketCalculator\main.obj 1</p>
<p>Freue mich auf weitere Hilfe.</p>
<p>mfg<br />
Ken</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2469204</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2469204</guid><dc:creator><![CDATA[Ken 0]]></dc:creator><pubDate>Sun, 27 Sep 2015 18:07:46 GMT</pubDate></item><item><title><![CDATA[Reply to Templates Erben funktioniert nicht on Mon, 28 Sep 2015 06:03:21 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/u100590" rel="nofollow">Martin Richter</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/f1" rel="nofollow">MFC (Visual C++)</a> in das Forum <a href="http://www.c-plusplus.net/forum/f15" rel="nofollow">C++ (alle ISO-Standards)</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/39405" 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/2469214</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2469214</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Mon, 28 Sep 2015 06:03:21 GMT</pubDate></item><item><title><![CDATA[Reply to Templates Erben funktioniert nicht on Mon, 28 Sep 2015 07:24:43 GMT]]></title><description><![CDATA[<p>Hi,<br />
der Header von calculator weiß gar nicht, was die Klasse Integer ist, du musst den Header von Integer noch mit #include einfügen.<br />
Und warum gehst du bei sum() den Umweg über die Basisklasse, du hast doch schon ein Objekt der Klasse integer, da kannst du die Funktion auch direkt ansprechen.</p>
<p>Wie ist denn die Aufgabenstellung, das Programm scheint mir noch etwas konfus zu sein.</p>
<p>Viele Grüße<br />
Cherup</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2469216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2469216</guid><dc:creator><![CDATA[Cherup]]></dc:creator><pubDate>Mon, 28 Sep 2015 07:24:43 GMT</pubDate></item></channel></rss>