<?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[Error Probleme]]></title><description><![CDATA[<p>Hi Jungs hab hier nen Error den ich nicht entziffern kann koennt ihr mir helfen?</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &quot;P1.h&quot;
#include &lt;fstream&gt;

using namespace std;

void argsAuswertung(string &amp;argv1,string &amp;argv2, string *&amp;xml_path, string *&amp;csv_path);
void csvEinlesen(string *&amp;csv_path, string &amp;csv_inhalt);
//void xmlSchreiben(*&amp;xml_path);

int main(int argc, char *argv[]){

    //Variablen
    string argv1, argv2, *xml_path, *csv_path, csv_inhalt;
    Anmeldung root, *temp = &amp;root;

    try{
        //ueberprueft die Anzahl der Kommandozeilenparameter
        if(argc &lt; 3) throw static_cast&lt;string&gt;(&quot;Falsche Anzahl der Parameter!&quot;);

        //speichert char in string, um strings nutzen zu koennen
        argv1 = argv[1];
        argv2 = argv[2];

        if(argv1.length()&lt;5 || argv2.length() &lt;5) throw static_cast&lt;string&gt;(&quot;Ungueltige Kommandozeilenparameter!&quot;);

        argsAuswertung(argv1, argv2, xml_path, csv_path);
        cout &lt;&lt; &quot;xml:&quot;&lt;&lt; *xml_path&lt;&lt;endl;
        cout &lt;&lt; &quot;csv:&quot;&lt;&lt; *csv_path&lt;&lt;endl;

    }catch(string e){
        cout &lt;&lt; e &lt;&lt; endl;
    }catch(...){
        cout &lt;&lt; &quot;Unbekannter Fehler!&quot; &lt;&lt; endl;
    }
    csvEinlesen(csv_path, csv_inhalt);
    //xmlSchreiben(xml_path);
    return 0;
}

/**
*  Wertet die 2 Argumente der Kommandozeile aus
*
* @param string &amp;arg1: Das erste Argument der Kommandozeile
* @param string &amp;arg2: Das zweite Argument der Kommandozeile
* @param string *&amp;xml_path: Ein Zeiger auf das Argument der den Pfad der XML-Datei enthält
* @param string *&amp;csv_path: Ein Zeiger auf das Argument der den Pfad der CSV-Datei enthält
*/
void argsAuswertung(string &amp;argv1, string &amp;argv2, string *&amp;xml_path, string *&amp;csv_path){
    /* Überprüfft ob das erste Argument einen Pfad auf eine .xml
       und das zweite Argument einen Pfad auf eine .csv Datei enthält */
    if (argv1.substr (argv1.length()-4)  == &quot;.xml&quot; &amp;&amp; argv2.substr(argv2.length()-4) == &quot;.csv&quot;){
        xml_path = &amp;argv1;
        csv_path = &amp;argv2;

    /* Überprüfft ob das erste Argument einen Pfad auf eine .csv
       und das zweite Argument einen Pfad auf eine .xml Datei enthält */
    }else if(argv1.substr (argv1.length()-4)  == &quot;.csv&quot; &amp;&amp; argv2.substr(argv2.length()-4) == &quot;.xml&quot;){
        csv_path = &amp;argv1;
        xml_path = &amp;argv2;

    /* Wenn als Kommandozeilenparameter nicht eine .xml und eine .csv datei
       übergeben worden ist, dann wird eine exception geworfen */
    }else{
        throw static_cast&lt;string&gt;(&quot;Ungueltige Kommandozeilenparameter!&quot;);
    }

}
void csvEinlesen(string *&amp;csv_path,string &amp;csv_inhalt){

    ifstream lesen(&amp;csv_path);
    lesen &gt;&gt; &amp;csv_inhalt;
    lesen.close();

    cout&lt;&lt;csv_inhalt&lt;&lt;endl;

    }
</code></pre>
<pre><code>\main.cpp|74|error: no matching function for call to `std::basic_ifstream&lt;char, std::char_traits&lt;char&gt; &gt;::basic_ifstream(std::string**)'|
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/264399/error-probleme</link><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Sep 2026 21:12:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/264399.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Apr 2010 09:01:03 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Error Probleme on Wed, 07 Apr 2010 09:01:03 GMT]]></title><description><![CDATA[<p>Hi Jungs hab hier nen Error den ich nicht entziffern kann koennt ihr mir helfen?</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &quot;P1.h&quot;
#include &lt;fstream&gt;

using namespace std;

void argsAuswertung(string &amp;argv1,string &amp;argv2, string *&amp;xml_path, string *&amp;csv_path);
void csvEinlesen(string *&amp;csv_path, string &amp;csv_inhalt);
//void xmlSchreiben(*&amp;xml_path);

int main(int argc, char *argv[]){

    //Variablen
    string argv1, argv2, *xml_path, *csv_path, csv_inhalt;
    Anmeldung root, *temp = &amp;root;

    try{
        //ueberprueft die Anzahl der Kommandozeilenparameter
        if(argc &lt; 3) throw static_cast&lt;string&gt;(&quot;Falsche Anzahl der Parameter!&quot;);

        //speichert char in string, um strings nutzen zu koennen
        argv1 = argv[1];
        argv2 = argv[2];

        if(argv1.length()&lt;5 || argv2.length() &lt;5) throw static_cast&lt;string&gt;(&quot;Ungueltige Kommandozeilenparameter!&quot;);

        argsAuswertung(argv1, argv2, xml_path, csv_path);
        cout &lt;&lt; &quot;xml:&quot;&lt;&lt; *xml_path&lt;&lt;endl;
        cout &lt;&lt; &quot;csv:&quot;&lt;&lt; *csv_path&lt;&lt;endl;

    }catch(string e){
        cout &lt;&lt; e &lt;&lt; endl;
    }catch(...){
        cout &lt;&lt; &quot;Unbekannter Fehler!&quot; &lt;&lt; endl;
    }
    csvEinlesen(csv_path, csv_inhalt);
    //xmlSchreiben(xml_path);
    return 0;
}

/**
*  Wertet die 2 Argumente der Kommandozeile aus
*
* @param string &amp;arg1: Das erste Argument der Kommandozeile
* @param string &amp;arg2: Das zweite Argument der Kommandozeile
* @param string *&amp;xml_path: Ein Zeiger auf das Argument der den Pfad der XML-Datei enthält
* @param string *&amp;csv_path: Ein Zeiger auf das Argument der den Pfad der CSV-Datei enthält
*/
void argsAuswertung(string &amp;argv1, string &amp;argv2, string *&amp;xml_path, string *&amp;csv_path){
    /* Überprüfft ob das erste Argument einen Pfad auf eine .xml
       und das zweite Argument einen Pfad auf eine .csv Datei enthält */
    if (argv1.substr (argv1.length()-4)  == &quot;.xml&quot; &amp;&amp; argv2.substr(argv2.length()-4) == &quot;.csv&quot;){
        xml_path = &amp;argv1;
        csv_path = &amp;argv2;

    /* Überprüfft ob das erste Argument einen Pfad auf eine .csv
       und das zweite Argument einen Pfad auf eine .xml Datei enthält */
    }else if(argv1.substr (argv1.length()-4)  == &quot;.csv&quot; &amp;&amp; argv2.substr(argv2.length()-4) == &quot;.xml&quot;){
        csv_path = &amp;argv1;
        xml_path = &amp;argv2;

    /* Wenn als Kommandozeilenparameter nicht eine .xml und eine .csv datei
       übergeben worden ist, dann wird eine exception geworfen */
    }else{
        throw static_cast&lt;string&gt;(&quot;Ungueltige Kommandozeilenparameter!&quot;);
    }

}
void csvEinlesen(string *&amp;csv_path,string &amp;csv_inhalt){

    ifstream lesen(&amp;csv_path);
    lesen &gt;&gt; &amp;csv_inhalt;
    lesen.close();

    cout&lt;&lt;csv_inhalt&lt;&lt;endl;

    }
</code></pre>
<pre><code>\main.cpp|74|error: no matching function for call to `std::basic_ifstream&lt;char, std::char_traits&lt;char&gt; &gt;::basic_ifstream(std::string**)'|
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1878680</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1878680</guid><dc:creator><![CDATA[-JayDee- 1]]></dc:creator><pubDate>Wed, 07 Apr 2010 09:01:03 GMT</pubDate></item><item><title><![CDATA[Reply to Error Probleme on Wed, 07 Apr 2010 09:06:52 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">string *&amp;csv_path // Zeile 71
&amp;csv_path // Zeile 74
</code></pre>
<p>Mache dir klar, was das alles bedeutet.</p>
<p>PS: Dein Code ist grausam, insbesondere dein static_cast-Muell.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1878684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1878684</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Wed, 07 Apr 2010 09:06:52 GMT</pubDate></item><item><title><![CDATA[Reply to Error Probleme on Wed, 07 Apr 2010 09:08:51 GMT]]></title><description><![CDATA[<p>Da ich erst in den Anfaengen der Programmierung stecke und das mit Hilfe ausprogrammiert habe, bitte ich dich mir das an dieser stelle zu erklären.</p>
<p>Danke im Voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1878686</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1878686</guid><dc:creator><![CDATA[-JayDee- 1]]></dc:creator><pubDate>Wed, 07 Apr 2010 09:08:51 GMT</pubDate></item><item><title><![CDATA[Reply to Error Probleme on Wed, 07 Apr 2010 09:13:30 GMT]]></title><description><![CDATA[<p>-JayDee- schrieb:</p>
<blockquote>
<p>Da ich erst in den Anfaengen der Programmierung stecke und das mit Hilfe ausprogrammiert habe, bitte ich dich mir das an dieser stelle zu erklären.</p>
</blockquote>
<p>Nein, das werde ich nicht. Der Platz wuerde hier nicht ausreichen. Lies dazu ein geeignetes Buch.</p>
<p>Wenn ich das lese, dann solltest du wirklich erstmal die Grundlagen lernen.</p>
<pre><code class="language-cpp">//speichert char in string, um strings nutzen zu koennen
argv1 = argv[1];
argv2 = argv[2];
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1878689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1878689</guid><dc:creator><![CDATA[knivil]]></dc:creator><pubDate>Wed, 07 Apr 2010 09:13:30 GMT</pubDate></item><item><title><![CDATA[Reply to Error Probleme on Wed, 07 Apr 2010 09:12:52 GMT]]></title><description><![CDATA[<p>ja hast recht, macht kein sinn!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1878691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1878691</guid><dc:creator><![CDATA[-JayDee- 1]]></dc:creator><pubDate>Wed, 07 Apr 2010 09:12:52 GMT</pubDate></item></channel></rss>