<?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[&amp;quot;&amp;quot; und chars übergeben]]></title><description><![CDATA[<p>Hallo,<br />
ich habe eine Funktion, die man so im Programm aufruft:</p>
<pre><code>MeineFunktion(Test, Lalala);
</code></pre>
<p>Das Problem ist das z.B. Test in eine char kommen soll, doch das funktioniert nicht da er nicht weiß was z.B. Test ist, wie erklär ich dem Compiler das ohne gleich 50 Zeilen ins Programm zuschreiben?</p>
<p>Bye</p>
<p>PS: Die Funktion:</p>
<pre><code>void MeineFunktion(char eins[], char zwei[])
{

// Code

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/326034/quot-quot-und-chars-übergeben</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 09:30:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/326034.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 28 May 2014 23:24:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Wed, 28 May 2014 23:24:51 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich habe eine Funktion, die man so im Programm aufruft:</p>
<pre><code>MeineFunktion(Test, Lalala);
</code></pre>
<p>Das Problem ist das z.B. Test in eine char kommen soll, doch das funktioniert nicht da er nicht weiß was z.B. Test ist, wie erklär ich dem Compiler das ohne gleich 50 Zeilen ins Programm zuschreiben?</p>
<p>Bye</p>
<p>PS: Die Funktion:</p>
<pre><code>void MeineFunktion(char eins[], char zwei[])
{

// Code

}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2401340</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401340</guid><dc:creator><![CDATA[ColaLerner]]></dc:creator><pubDate>Wed, 28 May 2014 23:24:51 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Wed, 28 May 2014 23:29:24 GMT]]></title><description><![CDATA[<p>Hab vergessen zu fragen wie kann ich z.B. die zweite char in meinen Programm in &quot;&quot; schreiben also &quot;Lalala&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401343</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401343</guid><dc:creator><![CDATA[Colalerner]]></dc:creator><pubDate>Wed, 28 May 2014 23:29:24 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Wed, 28 May 2014 23:40:44 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/200753" rel="nofollow">Du brauchst Hilfe?</a><br />
Besonders Punkte 6 und 7 und der verlinkte Artikel. Deine Frage ist absolut unverständlich.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401344</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401344</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Wed, 28 May 2014 23:40:44 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Thu, 29 May 2014 09:57:45 GMT]]></title><description><![CDATA[<p>Problem 1:</p>
<p>myfunc.h</p>
<pre><code>void (char myf1[], char myf2[])
{

//Code

}
</code></pre>
<p>main.cpp</p>
<pre><code>#include myfunc.h
int main (void)
{

myfunc(Test, La); //Fehler: Das Programm weiß nicht was Test und La sind

return 0;
}
</code></pre>
<p>Wie kann ich den Fehler beheben? Ohne viele Zeilen bei main.cpp reinzuschreiben?</p>
<p>Problem 2:</p>
<p>main.cpp</p>
<pre><code>#include myfunc.h
int main (void)
{

myfunc(Test, &quot;La&quot;);

return 0;
}
</code></pre>
<p>Wie kann ich La in &quot;&quot; schreiben? Ohne Fehler?</p>
<p>Besser erklärt? <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>
]]></description><link>https://www.c-plusplus.net/forum/post/2401374</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401374</guid><dc:creator><![CDATA[ColaLerner]]></dc:creator><pubDate>Thu, 29 May 2014 09:57:45 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Thu, 29 May 2014 10:03:12 GMT]]></title><description><![CDATA[<p>1. Du musst schon irgendwie sagen, was Test und La sein sollen...?<br />
2. Genau so. Nur dann auch nicht char[] annehmen, sondern const char* in der Funktion.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401375</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401375</guid><dc:creator><![CDATA[Nathan]]></dc:creator><pubDate>Thu, 29 May 2014 10:03:12 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Thu, 29 May 2014 10:03:55 GMT]]></title><description><![CDATA[<p>Problem 1:<br />
Was bezweckst du mit einer namenlosen Funktion (in myfunc.h)?</p>
<p>//Fehler: Das Programm weiß nicht was Test und La sind<br />
Dann erklär dem Programm das doch. i.A. macht man sowas mit einer Deklaration und/oder Definition.</p>
<p>Problem 2:<br />
Wie kann ich La in &quot;&quot; schreiben? Ohne Fehler?<br />
&quot;La&quot; ist schon richtig. Das ist ein Stringliteral.<br />
Hier ist das Problem das Test, das der Compiler nicht kennt. Siehe Problem 1</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401376</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401376</guid><dc:creator><![CDATA[DirkB]]></dc:creator><pubDate>Thu, 29 May 2014 10:03:55 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Thu, 29 May 2014 10:45:17 GMT]]></title><description><![CDATA[<p>Test soll in myf1, und La soll in myf2</p>
<p>myf1 und myf2 werden dann &quot;verarbeitet&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401390</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401390</guid><dc:creator><![CDATA[ColaLerner]]></dc:creator><pubDate>Thu, 29 May 2014 10:45:17 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Thu, 29 May 2014 10:51:32 GMT]]></title><description><![CDATA[<p>ColaLerner schrieb:</p>
<blockquote>
<p>Test soll in myf1, und La soll in myf2</p>
<p>myf1 und myf2 werden dann &quot;verarbeitet&quot;</p>
</blockquote>
<p>Und was sollen La und Test sein?</p>
<p>Du sollst es dem Compiler mitteilen. nicht uns.</p>
<p>Wie du das machst, steht in dem Buch über C++ deiner Wahl.<br />
Denn diese Grundlagen enthält jedes (auch noch so schlechte) Buch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401391</guid><dc:creator><![CDATA[DirkB]]></dc:creator><pubDate>Thu, 29 May 2014 10:51:32 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Thu, 29 May 2014 14:51:05 GMT]]></title><description><![CDATA[<p>Hab hier aber kein Buch, mein Wissen ist eine Sammlung aus Tutorials, Schule, Crashkurse und augeliehene Bücher.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401411</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401411</guid><dc:creator><![CDATA[ColaLerner]]></dc:creator><pubDate>Thu, 29 May 2014 14:51:05 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Thu, 29 May 2014 15:08:41 GMT]]></title><description><![CDATA[<p>ColaLerner schrieb:</p>
<blockquote>
<p>Hab hier aber kein Buch, mein Wissen ist eine Sammlung aus Tutorials, Schule, Crashkurse und augeliehene Bücher.</p>
</blockquote>
<p>Na dann schaff dir n ordentliches C++-Buch an und arbeite es durch. Anschließend dann 10 &quot;Ich soll nicht C und C++ mischen&quot; Stoßgebete und es sei dir verziehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401413</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401413</guid><dc:creator><![CDATA[Namenloser324]]></dc:creator><pubDate>Thu, 29 May 2014 15:08:41 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Thu, 29 May 2014 15:24:47 GMT]]></title><description><![CDATA[<p>Du musst die Tutorials und Bücher (egal ob ausgeliehen oder eigene) auch <strong>durcharbeiten</strong>.</p>
<p>Dabei bedeutet <strong>durch</strong> &quot;von Vorne bis Hinten&quot;. Auch in der Reihenfolge, eine Seite nach der Anderen.<br />
Und <strong>arbeiten</strong>, dass du nicht nur lesen sollst, sondern auch mal die Beispiele nachprogrammierst.</p>
<p>Variablen kommen ziemlich früh dran. Eigene Funktionen zwar etwas später, aber immer noch im vorderen Teil der Bücher.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401416</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401416</guid><dc:creator><![CDATA[DirkB]]></dc:creator><pubDate>Thu, 29 May 2014 15:24:47 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Thu, 29 May 2014 23:26:33 GMT]]></title><description><![CDATA[<p>Ich glaube ich habe langsam so ungefähr eine Vermutung was der TE denn will.<br />
Und zwar glaube ich das er zwei Zeichenketten, einmal Test und einmal &quot;la&quot; an eine Funktion übergeben will.</p>
<p>Dass es eine Zeichenkette, und kein Variablenname ist, musst du aber für den compiler kenntlich machen.</p>
<pre><code>myfunc(&quot;Test&quot;, &quot;\&quot;La\&quot;&quot;);
</code></pre>
<p>Ist vielleicht prinzipiell das, was er sucht, auch wenn ich mir nicht ganz sicher bin.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401543</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401543</guid><dc:creator><![CDATA[kleiner Troll]]></dc:creator><pubDate>Thu, 29 May 2014 23:26:33 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Fri, 30 May 2014 08:32:25 GMT]]></title><description><![CDATA[<p>Ich denke ColaLerner will die zwei Texte in die zwei chars kriegen, weiß aber nicht wie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401570</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401570</guid><dc:creator><![CDATA[LightBoom]]></dc:creator><pubDate>Fri, 30 May 2014 08:32:25 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;quot;&amp;quot; und chars übergeben on Wed, 11 Jun 2014 22:18:08 GMT]]></title><description><![CDATA[<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2401577</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2401577</guid><dc:creator><![CDATA[Swordfish]]></dc:creator><pubDate>Wed, 11 Jun 2014 22:18:08 GMT</pubDate></item></channel></rss>