<?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[#include &amp;lt;meine_datei.cpp&amp;gt; - anfänger fragt]]></title><description><![CDATA[<p>hallo , ich habe folgendes problem:</p>
<p>ich möchte gerne eine neue cpp datei in mein script einbinden , weil der main-script sonst zu lang wird ^^ aber wie ?</p>
<p>muss ich da was beachten ???</p>
<p>einfach speichern und so einbinen ?</p>
<p>#include &lt;...&gt;<br />
#include &quot;...&quot;<br />
include &quot; &quot;;</p>
<p>oder wie ????</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/247913/include-lt-meine_datei-cpp-gt-anfänger-fragt</link><generator>RSS for Node</generator><lastBuildDate>Thu, 17 Sep 2026 08:59:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/247913.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 17 Aug 2009 12:57:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to #include &amp;lt;meine_datei.cpp&amp;gt; - anfänger fragt on Mon, 17 Aug 2009 12:57:19 GMT]]></title><description><![CDATA[<p>hallo , ich habe folgendes problem:</p>
<p>ich möchte gerne eine neue cpp datei in mein script einbinden , weil der main-script sonst zu lang wird ^^ aber wie ?</p>
<p>muss ich da was beachten ???</p>
<p>einfach speichern und so einbinen ?</p>
<p>#include &lt;...&gt;<br />
#include &quot;...&quot;<br />
include &quot; &quot;;</p>
<p>oder wie ????</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1762316</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1762316</guid><dc:creator><![CDATA[wer weis]]></dc:creator><pubDate>Mon, 17 Aug 2009 12:57:19 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;lt;meine_datei.cpp&amp;gt; - anfänger fragt on Mon, 17 Aug 2009 12:59:11 GMT]]></title><description><![CDATA[<p>#include &quot;RelativerPfad&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1762318</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1762318</guid><dc:creator><![CDATA[Mentras]]></dc:creator><pubDate>Mon, 17 Aug 2009 12:59:11 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;lt;meine_datei.cpp&amp;gt; - anfänger fragt on Mon, 17 Aug 2009 13:09:03 GMT]]></title><description><![CDATA[<p>Der Unterschied zwischen der Variante mit &quot;&quot; und der Variante mit &lt;&gt; ist zwar Implemetierungsabhängig, aber üblicherweise (d.h. bei allen gängigen Compilern) ist das so umgesetzt:</p>
<p>#include&lt;XXX&gt;<br />
Sucht XXX in den Includepfaden.</p>
<p>#include&quot;XXX&quot;<br />
Sucht XXX im akltuellen Verzeichnis (also normalerweise dein Projektverzeichnis). Wird nichts gefunden, so werden die Includepfade durchsucht. Dieser letzte Punkt ist sogar standardisiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1762323</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1762323</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Mon, 17 Aug 2009 13:09:03 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;lt;meine_datei.cpp&amp;gt; - anfänger fragt on Mon, 17 Aug 2009 13:13:28 GMT]]></title><description><![CDATA[<p>tuts aber nicht -.-</p>
<p><strong>Main.cpp</strong></p>
<pre><code class="language-cpp">#include &lt;cstdlib&gt;
#include &lt;iostream&gt;
#include &quot;test.cpp&quot;

using namespace std;

int main()
{
    test();
    return 0;
}
</code></pre>
<p><strong>test.cpp</strong></p>
<pre><code class="language-cpp">#include &lt;windows.h&gt;
#include &lt;cstdlib&gt;
#include &lt;iostream&gt;

int test()
{
cout&lt;&lt;&quot;Hallo&quot;;
Beep(100,100);
Sleep(1000);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1762328</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1762328</guid><dc:creator><![CDATA[wer weis]]></dc:creator><pubDate>Mon, 17 Aug 2009 13:13:28 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;lt;meine_datei.cpp&amp;gt; - anfänger fragt on Mon, 17 Aug 2009 13:17:49 GMT]]></title><description><![CDATA[<p>nein so macht man das nicht.<br />
Du legst dir einen Header zu deiner zweiten Sourcedatei an, die die Deklarationen enthält.<br />
in dem Fall<br />
<strong>test.hpp</strong></p>
<pre><code class="language-cpp">#ifndef TEST_HPP_INCLUDED
#define TEST_HPP_INCLUDED

int test();

#endif
</code></pre>
<p>und diese inkludierst du dann in beiden Sourcedateien.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1762330</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1762330</guid><dc:creator><![CDATA[JustAnotherNoob]]></dc:creator><pubDate>Mon, 17 Aug 2009 13:17:49 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;lt;meine_datei.cpp&amp;gt; - anfänger fragt on Mon, 17 Aug 2009 13:20:46 GMT]]></title><description><![CDATA[<p>irgentwie kommt da nur ne feler meldung:</p>
<p>multiple definition of `test()'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1762331</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1762331</guid><dc:creator><![CDATA[wer weis]]></dc:creator><pubDate>Mon, 17 Aug 2009 13:20:46 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;lt;meine_datei.cpp&amp;gt; - anfänger fragt on Mon, 17 Aug 2009 13:22:39 GMT]]></title><description><![CDATA[<p>du hast was falsch gemacht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/26a0.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--warning"
      title=":warning:"
      alt="⚠"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1762333</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1762333</guid><dc:creator><![CDATA[JustAnotherNoob]]></dc:creator><pubDate>Mon, 17 Aug 2009 13:22:39 GMT</pubDate></item><item><title><![CDATA[Reply to #include &amp;lt;meine_datei.cpp&amp;gt; - anfänger fragt on Mon, 17 Aug 2009 13:42:46 GMT]]></title><description><![CDATA[<p>wer weis schrieb:</p>
<blockquote>
<p>irgentwie kommt da nur ne feler meldung:</p>
<p>multiple definition of `test()'</p>
</blockquote>
<p>Du sollst die test.h inkludieren. Niemals eine *.cpp.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1762345</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1762345</guid><dc:creator><![CDATA[volkard]]></dc:creator><pubDate>Mon, 17 Aug 2009 13:42:46 GMT</pubDate></item></channel></rss>