<?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[brauche dringend hilfe!]]></title><description><![CDATA[<p>hallo zusammen,</p>
<p>ich hoffe ihr könnt mir einen kleinen tipp geben!<br />
ich erzeuge einen zufallswert und den möchte ich nacheinander an die beiden funktionen nacheinander übergeben,wie mach ich das???</p>
<p>dankeschön, frohe weihnachten und ein gesundes neues jahr wünsche ich euch!</p>
<pre><code class="language-csharp">int p1(){

}

int p2(){

}

int main()
{

	srand(time(NULL));
	int zahl;
	zahl=rand() % 10 + 1;//zufallszahl von 1 bis 10

        system(&quot;pause&quot;);
        return 0 ;
 }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/279387/brauche-dringend-hilfe</link><generator>RSS for Node</generator><lastBuildDate>Mon, 24 Aug 2026 16:23:00 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/279387.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 25 Dec 2010 14:38:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to brauche dringend hilfe! on Sat, 25 Dec 2010 14:40:05 GMT]]></title><description><![CDATA[<p>hallo zusammen,</p>
<p>ich hoffe ihr könnt mir einen kleinen tipp geben!<br />
ich erzeuge einen zufallswert und den möchte ich nacheinander an die beiden funktionen nacheinander übergeben,wie mach ich das???</p>
<p>dankeschön, frohe weihnachten und ein gesundes neues jahr wünsche ich euch!</p>
<pre><code class="language-csharp">int p1(){

}

int p2(){

}

int main()
{

	srand(time(NULL));
	int zahl;
	zahl=rand() % 10 + 1;//zufallszahl von 1 bis 10

        system(&quot;pause&quot;);
        return 0 ;
 }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1998799</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1998799</guid><dc:creator><![CDATA[welive]]></dc:creator><pubDate>Sat, 25 Dec 2010 14:40:05 GMT</pubDate></item><item><title><![CDATA[Reply to brauche dringend hilfe! on Sat, 25 Dec 2010 15:00:06 GMT]]></title><description><![CDATA[<p>Der kleine Tip lautet:<br />
Parametrisiere deine Funktionen p1 und p2 <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>Nachtrag:<br />
Momentan kannst du p1 und p2 ja folgendermassen verwenden (gesetzt der Fall, du gibst in p1 und p2 auch was zurück):</p>
<pre><code class="language-cpp">int returnValue1 = p1();
int returnValue2 = p2();
</code></pre>
<p>Was du aber möchtest ist:</p>
<pre><code class="language-cpp">int returnValue1 = p1(zahl);
int returnValue2 = p2(zahl);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1998803</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1998803</guid><dc:creator><![CDATA[inter2k3]]></dc:creator><pubDate>Sat, 25 Dec 2010 15:00:06 GMT</pubDate></item><item><title><![CDATA[Reply to brauche dringend hilfe! on Sat, 25 Dec 2010 15:05:58 GMT]]></title><description><![CDATA[<p>hast mir sehr geholfen :), ich danke dir :)!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1998804</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1998804</guid><dc:creator><![CDATA[welive]]></dc:creator><pubDate>Sat, 25 Dec 2010 15:05:58 GMT</pubDate></item></channel></rss>