<?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[g++ error: no matching function for call to ..]]></title><description><![CDATA[<p>Kann mir jemand helfe bei diesem Problem ?<br />
Würde mich freuen wenn mir jemand einen tipp geben kann.</p>
<pre><code>[b]g++ main.cpp [/b]                                                                                  
main.cpp: In function `int main()':
main.cpp:35: error: no matching function for call to `strVokabeln::strVokabeln(
   std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, 
   std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;)'
Functions.h:11: error: candidates are: strVokabeln::strVokabeln()
Functions.h:11: error:                 strVokabeln::strVokabeln(const 
   strVokabeln&amp;)
</code></pre>
<pre><code class="language-cpp">1 //---------------------------------------------------------------------------
      2 #include &lt;iostream&gt;
      3 #include &lt;fstream&gt;
      4 #include &lt;string&gt;
      5 #include &lt;vector&gt;
      6 
      7 #include &quot;Functions.h&quot;
      8 //---------------------------------------------------------------------------
      9 using namespace std;
     10 
     11 int main( )
     12 {
     13 
     14    int iMaxLines;
     15    string sFile;
     16    int iAlgo  = 0;
     17    int iRound  = 0;
     18 
     19    ifstream myFile;
     20    myFile.open (&quot;test.txt&quot;);
     21 
     22    if(!myFile){
     23       cout &lt;&lt; &quot;Fehler beim Oeffnen der Datei!\n&quot;;
     24       exit(1);
     25    }
     26 
     27    //iMaxLines = getFileLines( myFile );
     28    vector &lt; strVokabeln &gt; Woerterbuch;
     29    //Woerterbuch.resize(iMaxLines);
     30    //Woerterbuch[1].sDeutsch
     31   string zeile;
     32    while(getline(myFile,zeile))
     33    {
     34       size_t trenn = zeile.find(' ');
     35       Woerterbuch.push_back(strVokabeln(zeile.substr(0,trenn),zeile.substr(trenn+1)));
     36    }
     37    //myVokabel = new strVokabeln[iMaxLines];
     38 
     39 
     40    /*
     41    loadVokabeln(myFile, myVokabel, iMaxLines);
     42    oneonetraining (myVokabel, &amp;iMaxLines, iRound);
     43    */
     44 
     45    myFile.close();
     46    Woerterbuch.clear();
     47    cin.get();
     48    return 0;
     49 }
</code></pre>
<p>&quot;Functions.h&quot;</p>
<pre><code class="language-cpp">1 //---------------------------------------------------------------------------
      2 #include &lt;iostream&gt;
      3 #include &lt;fstream&gt;
      4 #include &lt;string&gt;
      5 //---------------------------------------------------------------------------
      6 #define ALGO 0
      7 #define ROUND 2
      8 
      9 
     10 struct strVokabeln
     11 {
     12    std::string sDeutsch;
     13    std::string sEnglisch;
     14 };
     15 
     16 int getFileLines ( std::ifstream &amp;myFile );
     17 void loadVokabeln ( std::ifstream &amp;myFile, strVokabeln *myVocabulum, int &amp;size);
     18 void oneonetraining ( strVokabeln *myVocabulum, int *iMaxLines, int &amp;Durchlaeufe);
     19 int getRandomNumber ( int iMaxMumber );
     20 //void startparameter(char * argv[], int *iRound,int *iAlgo);
     21 
     22
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/164795/g-error-no-matching-function-for-call-to</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 02:10:04 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/164795.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Nov 2006 19:03:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to g++ error: no matching function for call to .. on Sun, 12 Nov 2006 19:03:15 GMT]]></title><description><![CDATA[<p>Kann mir jemand helfe bei diesem Problem ?<br />
Würde mich freuen wenn mir jemand einen tipp geben kann.</p>
<pre><code>[b]g++ main.cpp [/b]                                                                                  
main.cpp: In function `int main()':
main.cpp:35: error: no matching function for call to `strVokabeln::strVokabeln(
   std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, 
   std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;)'
Functions.h:11: error: candidates are: strVokabeln::strVokabeln()
Functions.h:11: error:                 strVokabeln::strVokabeln(const 
   strVokabeln&amp;)
</code></pre>
<pre><code class="language-cpp">1 //---------------------------------------------------------------------------
      2 #include &lt;iostream&gt;
      3 #include &lt;fstream&gt;
      4 #include &lt;string&gt;
      5 #include &lt;vector&gt;
      6 
      7 #include &quot;Functions.h&quot;
      8 //---------------------------------------------------------------------------
      9 using namespace std;
     10 
     11 int main( )
     12 {
     13 
     14    int iMaxLines;
     15    string sFile;
     16    int iAlgo  = 0;
     17    int iRound  = 0;
     18 
     19    ifstream myFile;
     20    myFile.open (&quot;test.txt&quot;);
     21 
     22    if(!myFile){
     23       cout &lt;&lt; &quot;Fehler beim Oeffnen der Datei!\n&quot;;
     24       exit(1);
     25    }
     26 
     27    //iMaxLines = getFileLines( myFile );
     28    vector &lt; strVokabeln &gt; Woerterbuch;
     29    //Woerterbuch.resize(iMaxLines);
     30    //Woerterbuch[1].sDeutsch
     31   string zeile;
     32    while(getline(myFile,zeile))
     33    {
     34       size_t trenn = zeile.find(' ');
     35       Woerterbuch.push_back(strVokabeln(zeile.substr(0,trenn),zeile.substr(trenn+1)));
     36    }
     37    //myVokabel = new strVokabeln[iMaxLines];
     38 
     39 
     40    /*
     41    loadVokabeln(myFile, myVokabel, iMaxLines);
     42    oneonetraining (myVokabel, &amp;iMaxLines, iRound);
     43    */
     44 
     45    myFile.close();
     46    Woerterbuch.clear();
     47    cin.get();
     48    return 0;
     49 }
</code></pre>
<p>&quot;Functions.h&quot;</p>
<pre><code class="language-cpp">1 //---------------------------------------------------------------------------
      2 #include &lt;iostream&gt;
      3 #include &lt;fstream&gt;
      4 #include &lt;string&gt;
      5 //---------------------------------------------------------------------------
      6 #define ALGO 0
      7 #define ROUND 2
      8 
      9 
     10 struct strVokabeln
     11 {
     12    std::string sDeutsch;
     13    std::string sEnglisch;
     14 };
     15 
     16 int getFileLines ( std::ifstream &amp;myFile );
     17 void loadVokabeln ( std::ifstream &amp;myFile, strVokabeln *myVocabulum, int &amp;size);
     18 void oneonetraining ( strVokabeln *myVocabulum, int *iMaxLines, int &amp;Durchlaeufe);
     19 int getRandomNumber ( int iMaxMumber );
     20 //void startparameter(char * argv[], int *iRound,int *iAlgo);
     21 
     22
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1173214</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1173214</guid><dc:creator><![CDATA[zyon]]></dc:creator><pubDate>Sun, 12 Nov 2006 19:03:15 GMT</pubDate></item><item><title><![CDATA[Reply to g++ error: no matching function for call to .. on Sun, 12 Nov 2006 19:10:24 GMT]]></title><description><![CDATA[<p>Wenn du das so aufrufen willst, braucht strVokabeln einen entsprechenden Konstruktor.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1173216</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1173216</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Sun, 12 Nov 2006 19:10:24 GMT</pubDate></item><item><title><![CDATA[Reply to g++ error: no matching function for call to .. on Sun, 12 Nov 2006 19:21:08 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=1819" rel="nofollow">rüdiger</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=5" rel="nofollow">Linux/Unix</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1173230</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1173230</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Sun, 12 Nov 2006 19:21:08 GMT</pubDate></item></channel></rss>