<?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[Anfängerfrage: Übersichtlichkeit]]></title><description><![CDATA[<p>Hi all</p>
<p>Bin ein anfänger und wollte fragen wie ich eine Funktion in einer anderen .cpp Datei verfrachten kann. Ich weis nicht genau wie ich damit umgehen soll.<br />
(P.S.:Ich weiß globale Variablen sind nicht toll aber mei)<br />
Z.b habe ich jetzt</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;

using namespace std;

    string Befehl;

void befehlprufung ()
{
if (Befehl==&quot;Hallo&quot;)
cout &lt;&lt; &quot;\n\nAsdf\n\n&quot;;
else
cout &lt;&lt; &quot;\nnothing\n&quot;;
}

int main()

cout &lt;&lt; &quot;Gib einen Befehl ein\n&quot;;
cin  &gt;&gt; Befehl;
//Was für ein Befehl war dass?
befehlprufung ();
cout &lt;&lt; &quot;\n\nFertig\n&quot;;

    return 0;
}
</code></pre>
<p>So hab ich mir jetzt ausgedacht (könnten Fehler drin sein)<br />
Wie bring ich die Funktion &quot;befehlprufung&quot; jetzt in eine andere .cpp datei?</p>
<p>Hoffe auf Hilfe<br />
Niko (alias greece57)</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/194852/anfängerfrage-übersichtlichkeit</link><generator>RSS for Node</generator><lastBuildDate>Tue, 29 Sep 2026 20:18:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/194852.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Oct 2007 14:32:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Thu, 11 Oct 2007 14:32:53 GMT]]></title><description><![CDATA[<p>Hi all</p>
<p>Bin ein anfänger und wollte fragen wie ich eine Funktion in einer anderen .cpp Datei verfrachten kann. Ich weis nicht genau wie ich damit umgehen soll.<br />
(P.S.:Ich weiß globale Variablen sind nicht toll aber mei)<br />
Z.b habe ich jetzt</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;

using namespace std;

    string Befehl;

void befehlprufung ()
{
if (Befehl==&quot;Hallo&quot;)
cout &lt;&lt; &quot;\n\nAsdf\n\n&quot;;
else
cout &lt;&lt; &quot;\nnothing\n&quot;;
}

int main()

cout &lt;&lt; &quot;Gib einen Befehl ein\n&quot;;
cin  &gt;&gt; Befehl;
//Was für ein Befehl war dass?
befehlprufung ();
cout &lt;&lt; &quot;\n\nFertig\n&quot;;

    return 0;
}
</code></pre>
<p>So hab ich mir jetzt ausgedacht (könnten Fehler drin sein)<br />
Wie bring ich die Funktion &quot;befehlprufung&quot; jetzt in eine andere .cpp datei?</p>
<p>Hoffe auf Hilfe<br />
Niko (alias greece57)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382909</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382909</guid><dc:creator><![CDATA[greece57]]></dc:creator><pubDate>Thu, 11 Oct 2007 14:32:53 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Thu, 11 Oct 2007 14:41:01 GMT]]></title><description><![CDATA[<blockquote>
<p>Wie bring ich die Funktion &quot;befehlprufung&quot; jetzt in eine andere .cpp datei?</p>
</blockquote>
<p>Kopieren. Und dann noch ne Headerdatei erstellen. Und übergibt den string als parameter nicht global.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382916</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382916</guid><dc:creator><![CDATA[EinSongNamesSchunder]]></dc:creator><pubDate>Thu, 11 Oct 2007 14:41:01 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Thu, 11 Oct 2007 18:26:52 GMT]]></title><description><![CDATA[<p>Kann mir jemand zeigen wie das genau geht, bitte (Mit der Headerdatei und so)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1383124</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1383124</guid><dc:creator><![CDATA[greece57]]></dc:creator><pubDate>Thu, 11 Oct 2007 18:26:52 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Thu, 11 Oct 2007 19:07:40 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Siehe zum Beispiel <a href="http://tutorial.schornboeck.net/uebersetzungseinheiten.htm" rel="nofollow">hier</a>.<br />
Das genaue Vorgehen ist dabei von deiner IDE/Compiler abhängig.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1383163</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1383163</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 11 Oct 2007 19:07:40 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Thu, 11 Oct 2007 19:57:24 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;

bool check_cmd(const std::string&amp; cmd)
{
    return cmd == &quot;Hallo&quot;;
}

int main()
{
    std::cout &lt;&lt; &quot;Gib einen Befehl ein\n&quot;;
    std::string line;
    std::getline(std::cin, line);
    std::cout &lt;&lt; check_cmd(line) &lt;&lt; std::endl;
}
</code></pre>
<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1383209</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1383209</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Thu, 11 Oct 2007 19:57:24 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Sat, 13 Oct 2007 13:34:57 GMT]]></title><description><![CDATA[<p>Nein ich meine es soll in ne externe-Datei (header und cpp) des check ich nicht wie des geht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384409</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384409</guid><dc:creator><![CDATA[greece57]]></dc:creator><pubDate>Sat, 13 Oct 2007 13:34:57 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Sat, 13 Oct 2007 13:44:07 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">//MeineHeaderDatei.cpp
#include &lt;string&gt;
#include &lt;iostream&gt;
using namespace std;

void befehlprufung ( const string befehl )
{
    if ( befehl==&quot;Hallo&quot; )
        cout &lt;&lt; &quot;\n\nAsdf\n\n&quot;;
    else
        cout &lt;&lt; &quot;\nnothing\n&quot;;
}
</code></pre>
<pre><code class="language-cpp">//MeineHeaderDatei.h
#include &lt;string&gt;

void befehlprufung ( const std::string befehl );
</code></pre>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &quot;MeineHeaderDatei.h&quot;

using namespace std;

int main()
{
    string befehl;
    cout &lt;&lt; &quot;Gib einen Befehl ein\n&quot;;
    cin  &gt;&gt; Befehl;
    //Was für ein Befehl war dass?
    befehlprufung( befehl );
    cout &lt;&lt; &quot;\n\nFertig\n&quot;;
    return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1384417</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384417</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Sat, 13 Oct 2007 13:44:07 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Sat, 13 Oct 2007 13:49:54 GMT]]></title><description><![CDATA[<p>Genau dass wollte ich tausend dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384420</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384420</guid><dc:creator><![CDATA[greece57]]></dc:creator><pubDate>Sat, 13 Oct 2007 13:49:54 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Sat, 13 Oct 2007 14:11:25 GMT]]></title><description><![CDATA[<p>Meine .h Datei</p>
<pre><code class="language-cpp">#include &lt;string&gt;

void Crackmanager ( const std::string IAdresse );
</code></pre>
<p>Fehler</p>
<blockquote>
<p>4 C:\Projekte\hacker\Internetsuche.h too few arguments to function `void Crackmanager(std::string)'</p>
</blockquote>
<p>Nicht über dem namen wundern is ein spielchen <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1384426</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384426</guid><dc:creator><![CDATA[greece57]]></dc:creator><pubDate>Sat, 13 Oct 2007 14:11:25 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Sat, 13 Oct 2007 14:15:54 GMT]]></title><description><![CDATA[<p>proble, gelöst</p>
<p>hatte in main nur crackmanager () anstatt crackmanager ( IAdresse ) geschrieben</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384428</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384428</guid><dc:creator><![CDATA[greece57]]></dc:creator><pubDate>Sat, 13 Oct 2007 14:15:54 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Sat, 13 Oct 2007 14:21:52 GMT]]></title><description><![CDATA[<p>Was muss ich machen um die Variable</p>
<pre><code>&quot;Befehl&quot;
</code></pre>
<p>auch noch ändern zu können</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384431</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384431</guid><dc:creator><![CDATA[greece57]]></dc:creator><pubDate>Sat, 13 Oct 2007 14:21:52 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Sat, 13 Oct 2007 14:25:13 GMT]]></title><description><![CDATA[<p>Das const entfernen, und wenn du möchtest, dass sich beim Verändern auch der originale String ändert, eine Referenz daraus machen (&amp;).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384433</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384433</guid><dc:creator><![CDATA[The-Kenny]]></dc:creator><pubDate>Sat, 13 Oct 2007 14:25:13 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Sat, 13 Oct 2007 14:25:24 GMT]]></title><description><![CDATA[<p>AJA NOCH WAS:<br />
SORRY WEGEN DER GANZEN FRAGEREI ABER AUS DEM BUCH DAS ICH GELESEN HAB GEHT DAS NUN MAL NICHT HERVOR UND DANKE FÜR DIE UNTERSTÜTZUNG</p>
<p>GROß weil ich euch stark danke <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1384434</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384434</guid><dc:creator><![CDATA[greece57]]></dc:creator><pubDate>Sat, 13 Oct 2007 14:25:24 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Sat, 13 Oct 2007 14:26:36 GMT]]></title><description><![CDATA[<p>DANKE ES GEHT</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384435</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384435</guid><dc:creator><![CDATA[greece57]]></dc:creator><pubDate>Sat, 13 Oct 2007 14:26:36 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Sat, 13 Oct 2007 14:27:43 GMT]]></title><description><![CDATA[<p>Bei soviel Dank helfen wir doch gerne <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1384438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384438</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Sat, 13 Oct 2007 14:27:43 GMT</pubDate></item><item><title><![CDATA[Reply to Anfängerfrage: Übersichtlichkeit on Sun, 14 Oct 2007 08:58:30 GMT]]></title><description><![CDATA[<p><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="😃"
    /> <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>
]]></description><link>https://www.c-plusplus.net/forum/post/1384746</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384746</guid><dc:creator><![CDATA[greece57]]></dc:creator><pubDate>Sun, 14 Oct 2007 08:58:30 GMT</pubDate></item></channel></rss>