<?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[bitte helft mir habe schon viele gefragt und keiner wusst warum...]]></title><description><![CDATA[<p>... wieso kann ich den keine private variable ausgeben!!! Hat das was mit dem copyconstructor zu tun!!</p>
<p>will die private variable int sendeLeistung über void Handy::mehrSendeleistung() ausgeben, eigentlich will ich die sendeleistung da erhöhen aber er lässt mich nicht damit arbeiten und sagt mir immer: 'sendeLeistun': nicht deklarierter Bezeichner!!</p>
<p>hier mein header und meine cpp und meine main!</p>
<p>hier die cpp:</p>
<pre><code class="language-cpp">#include &quot;Handy.h&quot;
#include &lt;iostream&gt;

using namespace std;

Handy::Handy(int eineSendeleistung, int eineAkkukapazitaet, char* einName) : sendeLeistung(eineSendeleistung), akkuKapazitaet(eineAkkukapazitaet), name(einName)
{
	//sendeLeistung = eineSendeleistung;
	//akkuKapazitaet = eineAkkukapazitaet;
	//name = einName;
}

Handy::Handy()
{

}

Handy::~Handy(void)
{
	cout &lt;&lt; &quot;Sendeleistung: &quot; &lt;&lt; sendeLeistung &lt;&lt; endl
		&lt;&lt; &quot;Akkukapazitaet: &quot; &lt;&lt; akkuKapazitaet &lt;&lt; endl
		&lt;&lt; &quot;Name des Handy's: &quot; &lt;&lt; name &lt;&lt; endl &lt;&lt; endl;
}

void mehrSendeleistung()
{
	//int sdl;

	//sdl = sendeLeistung;

	cout &lt;&lt; &quot;Sendeleistung neu: &quot; &lt;&lt; sendeLeistung &lt;&lt; endl;
//	sendeLeistung=sendeLeistung &lt; 2000 ? sendeLeistung +=100 : sendeLeistung;

}
void wenigerSendeleistung()
{
}

void beginnGespraech()
{
}

void beendeGespraech()
{
}

void Handy::wait(double seconds)
{
}
</code></pre>
<p>hier die header:</p>
<pre><code class="language-cpp">#pragma once

class Handy
{
private:
	char* name;
	int sendeLeistung;
	float akkuLadung;
	int akkuKapazitaet;
	float akkuSpannung;

public:
	Handy(int eineSendeleistung, int eineAkkukapazitaet, char* einName);
	Handy();
	~Handy(void);
	void mehrSendeleistung();
	void wenigerSendeleistung();
	void beginnGespraech();
	void beendeGespraech();
	void wait(double seconds);

};
</code></pre>
<p>und hier meine kleine main:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &quot;Ladestation.h&quot;
#include &quot;Handy.h&quot;
#include &lt;string&gt;

using namespace std;

int main()
{
	Handy mobil(200,100,&quot;Nokia e65&quot;);
	Ladestation loadstation(&quot;Nas&quot;,100);

	mobil.mehrSendeleistung();

	//mobil.mehrSendeleistung();

	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/184162/bitte-helft-mir-habe-schon-viele-gefragt-und-keiner-wusst-warum</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 15:21:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/184162.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Jun 2007 19:14:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to bitte helft mir habe schon viele gefragt und keiner wusst warum... on Tue, 12 Jun 2007 19:14:23 GMT]]></title><description><![CDATA[<p>... wieso kann ich den keine private variable ausgeben!!! Hat das was mit dem copyconstructor zu tun!!</p>
<p>will die private variable int sendeLeistung über void Handy::mehrSendeleistung() ausgeben, eigentlich will ich die sendeleistung da erhöhen aber er lässt mich nicht damit arbeiten und sagt mir immer: 'sendeLeistun': nicht deklarierter Bezeichner!!</p>
<p>hier mein header und meine cpp und meine main!</p>
<p>hier die cpp:</p>
<pre><code class="language-cpp">#include &quot;Handy.h&quot;
#include &lt;iostream&gt;

using namespace std;

Handy::Handy(int eineSendeleistung, int eineAkkukapazitaet, char* einName) : sendeLeistung(eineSendeleistung), akkuKapazitaet(eineAkkukapazitaet), name(einName)
{
	//sendeLeistung = eineSendeleistung;
	//akkuKapazitaet = eineAkkukapazitaet;
	//name = einName;
}

Handy::Handy()
{

}

Handy::~Handy(void)
{
	cout &lt;&lt; &quot;Sendeleistung: &quot; &lt;&lt; sendeLeistung &lt;&lt; endl
		&lt;&lt; &quot;Akkukapazitaet: &quot; &lt;&lt; akkuKapazitaet &lt;&lt; endl
		&lt;&lt; &quot;Name des Handy's: &quot; &lt;&lt; name &lt;&lt; endl &lt;&lt; endl;
}

void mehrSendeleistung()
{
	//int sdl;

	//sdl = sendeLeistung;

	cout &lt;&lt; &quot;Sendeleistung neu: &quot; &lt;&lt; sendeLeistung &lt;&lt; endl;
//	sendeLeistung=sendeLeistung &lt; 2000 ? sendeLeistung +=100 : sendeLeistung;

}
void wenigerSendeleistung()
{
}

void beginnGespraech()
{
}

void beendeGespraech()
{
}

void Handy::wait(double seconds)
{
}
</code></pre>
<p>hier die header:</p>
<pre><code class="language-cpp">#pragma once

class Handy
{
private:
	char* name;
	int sendeLeistung;
	float akkuLadung;
	int akkuKapazitaet;
	float akkuSpannung;

public:
	Handy(int eineSendeleistung, int eineAkkukapazitaet, char* einName);
	Handy();
	~Handy(void);
	void mehrSendeleistung();
	void wenigerSendeleistung();
	void beginnGespraech();
	void beendeGespraech();
	void wait(double seconds);

};
</code></pre>
<p>und hier meine kleine main:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &quot;Ladestation.h&quot;
#include &quot;Handy.h&quot;
#include &lt;string&gt;

using namespace std;

int main()
{
	Handy mobil(200,100,&quot;Nokia e65&quot;);
	Ladestation loadstation(&quot;Nas&quot;,100);

	mobil.mehrSendeleistung();

	//mobil.mehrSendeleistung();

	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1304388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1304388</guid><dc:creator><![CDATA[anfänger110]]></dc:creator><pubDate>Tue, 12 Jun 2007 19:14:23 GMT</pubDate></item><item><title><![CDATA[Reply to bitte helft mir habe schon viele gefragt und keiner wusst warum... on Tue, 12 Jun 2007 19:46:18 GMT]]></title><description><![CDATA[<p>anstatt void mehrSendeleistung() void Handy::mehrSendeleistung() schreiben. Dann weiss der Kompiler, dass die Fkt. zur Klasse Handy gehört.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1304402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1304402</guid><dc:creator><![CDATA[scope-operator]]></dc:creator><pubDate>Tue, 12 Jun 2007 19:46:18 GMT</pubDate></item><item><title><![CDATA[Reply to bitte helft mir habe schon viele gefragt und keiner wusst warum... on Tue, 12 Jun 2007 20:01:57 GMT]]></title><description><![CDATA[<p>das haben wir total übersehen!!</p>
<p>oh man glaubt gar nicht wie nervenzerreißend solche kleine fehler sein können!! ´man sieht und sieht den einfach nicht!!!</p>
<p>danke jetzt geht's</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1304414</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1304414</guid><dc:creator><![CDATA[anfänger110]]></dc:creator><pubDate>Tue, 12 Jun 2007 20:01:57 GMT</pubDate></item><item><title><![CDATA[Reply to bitte helft mir habe schon viele gefragt und keiner wusst warum... on Wed, 13 Jun 2007 11:09:29 GMT]]></title><description><![CDATA[<p>Scopeoperator? *LOL*</p>
<p>Sorry, OT.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1304731</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1304731</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Wed, 13 Jun 2007 11:09:29 GMT</pubDate></item><item><title><![CDATA[Reply to bitte helft mir habe schon viele gefragt und keiner wusst warum... on Wed, 13 Jun 2007 11:20:31 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-9713.html" rel="nofollow">estartu</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-1.html" rel="nofollow">MFC (Visual C++)</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum-var-f-is-15.html" rel="nofollow">C++</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/1304733</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1304733</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 13 Jun 2007 11:20:31 GMT</pubDate></item></channel></rss>