<?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[Ordner erstellen]]></title><description><![CDATA[<p>Hallo liebe Community</p>
<p>Ich möchte gerne da mein kleines c++ programm mich nach einem ordnernamen fragt, und ihn dann am zielort erstellt.</p>
<p>ich hab mir das in etwa so vorgestellt.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;stdlib.h&gt;
#include &lt;fstream&gt;
#include &lt;string&gt;
#include &lt;stdio.h&gt;

using namespace std;

int main()
{
    string ver  =  &quot;36&quot;;
    string path =  &quot;mkdir c:\\repository\\install\\ff&quot;;
    string merge_str;

    merge_str= path+=ver;

    system(tmp);

    return 0;
}
</code></pre>
<p>leider, will system() einen char haben. wie löse ich das jetzt a, besten?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/309185/ordner-erstellen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 05 Aug 2026 12:09:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/309185.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 Oct 2012 12:53:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ordner erstellen on Tue, 16 Oct 2012 12:53:32 GMT]]></title><description><![CDATA[<p>Hallo liebe Community</p>
<p>Ich möchte gerne da mein kleines c++ programm mich nach einem ordnernamen fragt, und ihn dann am zielort erstellt.</p>
<p>ich hab mir das in etwa so vorgestellt.</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;stdlib.h&gt;
#include &lt;fstream&gt;
#include &lt;string&gt;
#include &lt;stdio.h&gt;

using namespace std;

int main()
{
    string ver  =  &quot;36&quot;;
    string path =  &quot;mkdir c:\\repository\\install\\ff&quot;;
    string merge_str;

    merge_str= path+=ver;

    system(tmp);

    return 0;
}
</code></pre>
<p>leider, will system() einen char haben. wie löse ich das jetzt a, besten?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2260983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2260983</guid><dc:creator><![CDATA[mittelzumzweck]]></dc:creator><pubDate>Tue, 16 Oct 2012 12:53:32 GMT</pubDate></item><item><title><![CDATA[Reply to Ordner erstellen on Tue, 16 Oct 2012 12:58:31 GMT]]></title><description><![CDATA[<p>Was ist <code>tmp</code> ? Meintest du <code>merge_str</code> ?<br />
Naja wie auch immer; wenn es ein <code>std::string</code> ist, mach einfach <code>system(tmp.c_str())</code></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2260987</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2260987</guid><dc:creator><![CDATA[Ferris]]></dc:creator><pubDate>Tue, 16 Oct 2012 12:58:31 GMT</pubDate></item><item><title><![CDATA[Reply to Ordner erstellen on Tue, 16 Oct 2012 13:00:46 GMT]]></title><description><![CDATA[<p>Standard-C++ kennt (noch) kein Konzept für Ordner. Dein Programm funktioniert eh nur für Windows, daher WinAPI:<br />
<a href="http://msdn.microsoft.com/en-us/library/windows/desktop/aa363855%28v=vs.85%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windows/desktop/aa363855(v=vs.85).aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2260988</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2260988</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Tue, 16 Oct 2012 13:00:46 GMT</pubDate></item><item><title><![CDATA[Reply to Ordner erstellen on Tue, 16 Oct 2012 13:02:49 GMT]]></title><description><![CDATA[<p>cooky451 schrieb:</p>
<blockquote>
<p>Dein Programm funktioniert eh nur für Windows</p>
</blockquote>
<p>Sicher? Ich dachte Linux und andere OSs kennen <code>mkdir</code> auch ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2260990</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2260990</guid><dc:creator><![CDATA[Ferris]]></dc:creator><pubDate>Tue, 16 Oct 2012 13:02:49 GMT</pubDate></item><item><title><![CDATA[Reply to Ordner erstellen on Tue, 16 Oct 2012 13:03:55 GMT]]></title><description><![CDATA[<p>sry ja ich meine merge_str</p>
<p>war nen anderer versuch.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2260991</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2260991</guid><dc:creator><![CDATA[mittelzumzweck]]></dc:creator><pubDate>Tue, 16 Oct 2012 13:03:55 GMT</pubDate></item><item><title><![CDATA[Reply to Ordner erstellen on Tue, 16 Oct 2012 13:06:14 GMT]]></title><description><![CDATA[<p>asklar<br />
schnell<br />
knackig<br />
gut</p>
<p>ihr seit ja echt spitze hier.<br />
läuft thread geschlossen</p>
<p>dank @Ferris</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2260992</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2260992</guid><dc:creator><![CDATA[mittelzumzweck]]></dc:creator><pubDate>Tue, 16 Oct 2012 13:06:14 GMT</pubDate></item><item><title><![CDATA[Reply to Ordner erstellen on Tue, 16 Oct 2012 13:11:13 GMT]]></title><description><![CDATA[<p>Ferris schrieb:</p>
<blockquote>
<p>cooky451 schrieb:</p>
<blockquote>
<p>Dein Programm funktioniert eh nur für Windows</p>
</blockquote>
<p>Sicher? Ich dachte Linux und andere OSs kennen <code>mkdir</code> auch ...</p>
</blockquote>
<p>PrettyOS aber nicht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/2260996</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2260996</guid><dc:creator><![CDATA[cooky451]]></dc:creator><pubDate>Tue, 16 Oct 2012 13:11:13 GMT</pubDate></item><item><title><![CDATA[Reply to Ordner erstellen on Tue, 16 Oct 2012 14:55:02 GMT]]></title><description><![CDATA[<p>Hier mit boost:</p>
<pre><code class="language-cpp">#include &lt;boost/filesystem.hpp&gt;
#include &lt;iostream&gt;

int main()
{
    using namespace std;
    cout &lt;&lt; &quot;Ordnernamen mit komplettem Pfad: &quot;;
    string pfad;
    getline(cin, pfad);
    if(boost::filesystem::exists(pfad))
    {
        cerr &lt;&lt; &quot;Ordner existiert bereits!\n&quot;;
        return 0;
    }
    boost::filesystem::create_directory(pfad);
}
</code></pre>
<p>Und wenn du meinst, dass es zu schwierig wäre, boost zu installieren:</p>
<p><a href="http://www.nuwen.net/mingw.html" rel="nofollow">http://www.nuwen.net/mingw.html</a></p>
<p>Hast gleich alles drin. Denk nur dran -lboost_filesystem und -lboost_system mitzulinken. Bei Code::Blocks unter Settings/Compiler and Debugger/Linker Settings\Other linker options einfach reinschreiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2261043</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2261043</guid><dc:creator><![CDATA[Incocnito]]></dc:creator><pubDate>Tue, 16 Oct 2012 14:55:02 GMT</pubDate></item></channel></rss>