<?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[[C++ Fehler] Unit1.cpp(42): E2034 Konvertierung von &#x27;string&#x27; nach &#x27;int&#x27; nicht möglich]]></title><description><![CDATA[<p>Hallo,</p>
<p>wenn ich hier mein Programm Compilieren will bekomme ich folgende Fehlermeldung:</p>
<p>[C++ Fehler] Unit1.cpp(42): E2034 Konvertierung von 'string' nach 'int' nicht möglich</p>
<p>Gibt es da irgendeine andere möglichkeit als diese Konvertierung ?</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;cstdio&gt;
using namespace std; 

int start();
int remove();

int main()

{
start();
int start=remove();
if (start==1)
remove();

getchar();

}

        int start()
        {
        int start;
        cout&lt;&lt;&quot;(1) Datein Loeschen\n&quot;;
        cin&gt;&gt;start;
        return start;
        }

int remove()
{
 string entfernen;

  cout&lt;&lt;&quot;Geben sie ein was sie Löschen wollen: \n&quot;;
  cin&gt;&gt;entfernen;
  remove(entfernen.c_str());
  getchar();
  return entfernen;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/199156/c-fehler-unit1-cpp-42-e2034-konvertierung-von-string-nach-int-nicht-möglich</link><generator>RSS for Node</generator><lastBuildDate>Fri, 02 Oct 2026 22:24:12 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/199156.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 29 Nov 2007 13:39:18 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [C++ Fehler] Unit1.cpp(42): E2034 Konvertierung von &#x27;string&#x27; nach &#x27;int&#x27; nicht möglich on Thu, 29 Nov 2007 13:41:08 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wenn ich hier mein Programm Compilieren will bekomme ich folgende Fehlermeldung:</p>
<p>[C++ Fehler] Unit1.cpp(42): E2034 Konvertierung von 'string' nach 'int' nicht möglich</p>
<p>Gibt es da irgendeine andere möglichkeit als diese Konvertierung ?</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;cstdio&gt;
using namespace std; 

int start();
int remove();

int main()

{
start();
int start=remove();
if (start==1)
remove();

getchar();

}

        int start()
        {
        int start;
        cout&lt;&lt;&quot;(1) Datein Loeschen\n&quot;;
        cin&gt;&gt;start;
        return start;
        }

int remove()
{
 string entfernen;

  cout&lt;&lt;&quot;Geben sie ein was sie Löschen wollen: \n&quot;;
  cin&gt;&gt;entfernen;
  remove(entfernen.c_str());
  getchar();
  return entfernen;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1412257</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1412257</guid><dc:creator><![CDATA[Bassmaster]]></dc:creator><pubDate>Thu, 29 Nov 2007 13:41:08 GMT</pubDate></item><item><title><![CDATA[Reply to [C++ Fehler] Unit1.cpp(42): E2034 Konvertierung von &#x27;string&#x27; nach &#x27;int&#x27; nicht möglich on Thu, 29 Nov 2007 13:42:02 GMT]]></title><description><![CDATA[<p>Ja, konsequent die richtigen Datentypen verwenden - 'int' stellt Ganzzahlen dar, 'string' Zeichenketten. (und egal in welchem Teil deines Programms du unterwegs bist, wirst du kaum einen Dateinamen in einen int-Wert quetschen können.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1412259</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1412259</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 29 Nov 2007 13:42:02 GMT</pubDate></item><item><title><![CDATA[Reply to [C++ Fehler] Unit1.cpp(42): E2034 Konvertierung von &#x27;string&#x27; nach &#x27;int&#x27; nicht möglich on Thu, 29 Nov 2007 13:49:59 GMT]]></title><description><![CDATA[<p>Und was wären in diesem Fall die richtigen Datentypen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1412266</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1412266</guid><dc:creator><![CDATA[Bassmaster]]></dc:creator><pubDate>Thu, 29 Nov 2007 13:49:59 GMT</pubDate></item><item><title><![CDATA[Reply to [C++ Fehler] Unit1.cpp(42): E2034 Konvertierung von &#x27;string&#x27; nach &#x27;int&#x27; nicht möglich on Thu, 29 Nov 2007 13:58:32 GMT]]></title><description><![CDATA[<p>entfernen ist ein string. Also musst du auch einen string zurückgeben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1412281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1412281</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 29 Nov 2007 13:58:32 GMT</pubDate></item><item><title><![CDATA[Reply to [C++ Fehler] Unit1.cpp(42): E2034 Konvertierung von &#x27;string&#x27; nach &#x27;int&#x27; nicht möglich on Thu, 29 Nov 2007 15:17:58 GMT]]></title><description><![CDATA[<p>ok thx</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1412370</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1412370</guid><dc:creator><![CDATA[Bassmaster]]></dc:creator><pubDate>Thu, 29 Nov 2007 15:17:58 GMT</pubDate></item></channel></rss>