<?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[Ich bin zu dumm zum casten bitte helft mir!]]></title><description><![CDATA[<pre><code class="language-cpp">char foo[] = &quot;55&quot;;
cout &lt;&lt; foo &lt;&lt; endl;
int bar;
bar = static_cast&lt;int&gt;(foo);
cout &lt;&lt; bar &lt;&lt; endl;
</code></pre>
<blockquote>
<p>invalid static_cast from type 'char[3]' to type 'int'</p>
</blockquote>
<p>Habe die Fehlermeldung gegoogelt aber nichts gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/251948/ich-bin-zu-dumm-zum-casten-bitte-helft-mir</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 06:46:38 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/251948.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Oct 2009 22:13:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ich bin zu dumm zum casten bitte helft mir! on Mon, 12 Oct 2009 22:13:00 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">char foo[] = &quot;55&quot;;
cout &lt;&lt; foo &lt;&lt; endl;
int bar;
bar = static_cast&lt;int&gt;(foo);
cout &lt;&lt; bar &lt;&lt; endl;
</code></pre>
<blockquote>
<p>invalid static_cast from type 'char[3]' to type 'int'</p>
</blockquote>
<p>Habe die Fehlermeldung gegoogelt aber nichts gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1791689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1791689</guid><dc:creator><![CDATA[BlakkCooper]]></dc:creator><pubDate>Mon, 12 Oct 2009 22:13:00 GMT</pubDate></item><item><title><![CDATA[Reply to Ich bin zu dumm zum casten bitte helft mir! on Mon, 12 Oct 2009 22:19:50 GMT]]></title><description><![CDATA[<p>Das ist Mist. Was willst du überhaupt machen?</p>
<p>Wenn du eine Zahl aus einem string in einen integer überführen willst, dann so:</p>
<pre><code class="language-cpp">#include &lt;iostream&gt;
#include &lt;sstream&gt;
#include &lt;string&gt;

int main ()
{
 int zahl = 0;
 std::string zahl_im_string = &quot;55&quot;;

 std::stringstream s;
 s &lt;&lt; zahl_im_string;
 s &gt;&gt; zahl;

 std::cout &lt;&lt; zahl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1791691</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1791691</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Mon, 12 Oct 2009 22:19:50 GMT</pubDate></item><item><title><![CDATA[Reply to Ich bin zu dumm zum casten bitte helft mir! on Mon, 12 Oct 2009 22:23:37 GMT]]></title><description><![CDATA[<p>FAQ lesen soll helfen...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1791693</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1791693</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Mon, 12 Oct 2009 22:23:37 GMT</pubDate></item></channel></rss>