<?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[Funktionen Zugriff]]></title><description><![CDATA[<p>Hallo miteinander habe wieder mal Problem, kann auf x nicht zugreifen, bitte um schnelle hilfe.</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;

float a = 0;

float berechnungFormel1(float);

float berechnungFormel1(float x)
{
	return x = 40 * a - 2;
}

/*float berechnungFormel2();
float berechnungFormel3();
float berechnungFormel4();*/

void testprogramme() 
{
	float a1, formel1;
	formel1 =  berechnungFormel1(x); &lt;&lt;&lt;&lt;&lt;&lt;&lt; Hier Fehler meldung
	a1 = (10 * a) + ((3 * x) - 2) / 4;

	// Linke Seite == Rechte Seite?

	// linke Seite Formel 2
	// rechte Seite Formel 2
	// Linke Seite == Rechte Seite?

	// linke Seite Formel 3
	// rechte Seite Formel 3
	// Linke Seite == Rechte Seite?

	// linke Seite Formel 4
	// rechte Seite Formel 4
	// Linke Seite == Rechte Seite?
}

int main() 
{
	printf(&quot;Bitte geben sie eine Zahl ein: &quot;);
	scanf(&quot;%9.3f&quot;, &amp;a);
	getchar();
	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/137012/funktionen-zugriff</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 14:58:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/137012.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 14 Feb 2006 19:47:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Funktionen Zugriff on Tue, 14 Feb 2006 19:47:14 GMT]]></title><description><![CDATA[<p>Hallo miteinander habe wieder mal Problem, kann auf x nicht zugreifen, bitte um schnelle hilfe.</p>
<pre><code class="language-cpp">#include &lt;stdio.h&gt;

float a = 0;

float berechnungFormel1(float);

float berechnungFormel1(float x)
{
	return x = 40 * a - 2;
}

/*float berechnungFormel2();
float berechnungFormel3();
float berechnungFormel4();*/

void testprogramme() 
{
	float a1, formel1;
	formel1 =  berechnungFormel1(x); &lt;&lt;&lt;&lt;&lt;&lt;&lt; Hier Fehler meldung
	a1 = (10 * a) + ((3 * x) - 2) / 4;

	// Linke Seite == Rechte Seite?

	// linke Seite Formel 2
	// rechte Seite Formel 2
	// Linke Seite == Rechte Seite?

	// linke Seite Formel 3
	// rechte Seite Formel 3
	// Linke Seite == Rechte Seite?

	// linke Seite Formel 4
	// rechte Seite Formel 4
	// Linke Seite == Rechte Seite?
}

int main() 
{
	printf(&quot;Bitte geben sie eine Zahl ein: &quot;);
	scanf(&quot;%9.3f&quot;, &amp;a);
	getchar();
	return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/994263</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/994263</guid><dc:creator><![CDATA[anfängerc++]]></dc:creator><pubDate>Tue, 14 Feb 2006 19:47:14 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen Zugriff on Tue, 14 Feb 2006 19:52:28 GMT]]></title><description><![CDATA[<p>anfängerc++ schrieb:</p>
<blockquote>
<p>Hallo miteinander habe wieder mal Problem, kann auf x nicht zugreifen,</p>
</blockquote>
<p>Auf welches x würdest du denn gerne zugreifen ?<br />
Kurt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/994269</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/994269</guid><dc:creator><![CDATA[ZuK]]></dc:creator><pubDate>Tue, 14 Feb 2006 19:52:28 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen Zugriff on Tue, 14 Feb 2006 19:55:17 GMT]]></title><description><![CDATA[<p>float berechnungFormel1(float x)<br />
{<br />
return x = 40 * a - 2;</p>
<p>auf diese hier x<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/994273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/994273</guid><dc:creator><![CDATA[anfängerc++]]></dc:creator><pubDate>Tue, 14 Feb 2006 19:55:17 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen Zugriff on Tue, 14 Feb 2006 19:57:31 GMT]]></title><description><![CDATA[<p>DIESES x ist lokal in berechnungFormel1, aber sonst gibt's das auch nirgends. Darauf kannst du nur innerhalb von berechnungFormel1 zugreifen.</p>
<p>MfG</p>
<p>GPC</p>
]]></description><link>https://www.c-plusplus.net/forum/post/994275</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/994275</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Tue, 14 Feb 2006 19:57:31 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen Zugriff on Tue, 14 Feb 2006 20:03:57 GMT]]></title><description><![CDATA[<p>gibt es eine alternative für zugriff?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/994281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/994281</guid><dc:creator><![CDATA[anfängerc++]]></dc:creator><pubDate>Tue, 14 Feb 2006 20:03:57 GMT</pubDate></item><item><title><![CDATA[Reply to Funktionen Zugriff on Tue, 14 Feb 2006 20:15:06 GMT]]></title><description><![CDATA[<p>Ja, du benutzt entweder eine Referenz, oder arbeitest mit vernünftigen Rückgabewerten:</p>
<pre><code class="language-cpp">//Referenz
void berechnungFormel1(float &amp;x) {
    x = 40 * a - 2;
}

//Rückgabewert
float berechnungFormel1_1() {
    return 40 * a - 2;
}
</code></pre>
<p>Du solltest dir ein Tutorial (<a href="http://tutorial.schornboeck.net/inhalt.htm" rel="nofollow">http://tutorial.schornboeck.net/inhalt.htm</a> oder <a href="http://www.volkard.de/Cpp/Tutorial/index.html" rel="nofollow">www.volkard.de/Cpp/Tutorial/index.html</a>) durchlesen, dort werden deine Fragen beantwortet.</p>
<p>MfG</p>
<p>GPC</p>
]]></description><link>https://www.c-plusplus.net/forum/post/994287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/994287</guid><dc:creator><![CDATA[GPC]]></dc:creator><pubDate>Tue, 14 Feb 2006 20:15:06 GMT</pubDate></item></channel></rss>