<?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[Text in Integer ?]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich suche eine Funktion die mir einen String (z.B. &quot;Hallo Welt&quot;) in eine Dezimalzahl umwandelt, bzw die einzelnen Buchstaben. Die Buchstaben rausfiltern ist ja kein Problem, aber halt umwandeln ind Int....</p>
<p>Ich hab gedacht das &quot; atoi() &quot; das kann, aber da wandelt ja nur ascii-Zahlen in Integer um. Kann mir da einer weiterhelfen?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/161987/text-in-integer</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Jul 2026 21:52:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/161987.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Oct 2006 08:00:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Text in Integer ? on Fri, 13 Oct 2006 08:00:08 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich suche eine Funktion die mir einen String (z.B. &quot;Hallo Welt&quot;) in eine Dezimalzahl umwandelt, bzw die einzelnen Buchstaben. Die Buchstaben rausfiltern ist ja kein Problem, aber halt umwandeln ind Int....</p>
<p>Ich hab gedacht das &quot; atoi() &quot; das kann, aber da wandelt ja nur ascii-Zahlen in Integer um. Kann mir da einer weiterhelfen?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154040</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154040</guid><dc:creator><![CDATA[Uruk-h4j]]></dc:creator><pubDate>Fri, 13 Oct 2006 08:00:08 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Integer ? on Fri, 13 Oct 2006 08:04:43 GMT]]></title><description><![CDATA[<p>falls es dir um die ASCII-codes der zeichen geht:</p>
<pre><code class="language-cpp">char c = 'a';
int i = (int) c;
//i ist nun 65, der ascii-code von a.
</code></pre>
<p>enjoy!<br />
-me</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154042</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154042</guid><dc:creator><![CDATA[das_brot]]></dc:creator><pubDate>Fri, 13 Oct 2006 08:04:43 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Integer ? on Fri, 13 Oct 2006 08:12:06 GMT]]></title><description><![CDATA[<p>ja klar....warum bin ich da selber nicht drauf gekommen !!!!</p>
<p>Danke...ist wohl noch zu früh für mich <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154047</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154047</guid><dc:creator><![CDATA[Uruk-h4j]]></dc:creator><pubDate>Fri, 13 Oct 2006 08:12:06 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Integer ? on Fri, 13 Oct 2006 13:15:36 GMT]]></title><description><![CDATA[<p>ja ok....klappt doch nicht so wie gewollt.</p>
<p>Mein Problem jetzt ist, dass ich meinen CString nicht umwandeln bekomme.</p>
<p>z.B. das &quot;W&quot; aus &quot;Hallo Welt&quot;:</p>
<p>Ich gebe einen String in ein feld ein mit var. m_string.</p>
<p>Dann hol ich mir die Variable und lese einzeln in ner schleife die Chars aus:</p>
<pre><code class="language-cpp">CString s;
char c;

size = sizeof(m_string);

for(int x = 0; x &lt; size; x++)
{
 s = m_string.Mid(x,1); //hole mir den char x
 c == s;

int i = (int) c;

return i; // ich mach was anderes damit, aber damit man weiß, dass ich das brauche
}
</code></pre>
<p>So ungefähr ist mein code aufgebaut. Nun bekomme ich fehlermeldungen, wel da was mit dem char nicht klappt und die Ausgage von c ergibt nicht den wert von meine Stringteil sondern IMMER -54 'I' (so ähnlich).</p>
<p>IOch bin da etwas ratlos.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154094</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154094</guid><dc:creator><![CDATA[Uruk-h4j]]></dc:creator><pubDate>Fri, 13 Oct 2006 13:15:36 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Integer ? on Fri, 13 Oct 2006 13:20:35 GMT]]></title><description><![CDATA[<p>Versuch es mal mit GetAt statt Mid. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154103</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154103</guid><dc:creator><![CDATA[estartu]]></dc:creator><pubDate>Fri, 13 Oct 2006 13:20:35 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Integer ? on Fri, 13 Oct 2006 13:27:11 GMT]]></title><description><![CDATA[<p>Hey mann danke...<br />
Bin schon verzweifelt, weil das Forum off war und ich da nicht weiterkam.<br />
Jetzt klappts auch so wie ich will und es muss !!!</p>
<p>CYA</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154110</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154110</guid><dc:creator><![CDATA[Uruk-h4j]]></dc:creator><pubDate>Fri, 13 Oct 2006 13:27:11 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Integer ? on Sat, 14 Oct 2006 01:56:46 GMT]]></title><description><![CDATA[<p>das == ist uncool direkt s mit atoi() bzw. ihr wisst ja was ich mein</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154431</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154431</guid><dc:creator><![CDATA[BorisDieKlinge]]></dc:creator><pubDate>Sat, 14 Oct 2006 01:56:46 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Integer ? on Sat, 14 Oct 2006 07:16:02 GMT]]></title><description><![CDATA[<p>ja is mir schon klar, aber ein einfaches &quot;=&quot; hatte er nicht genommen...<br />
Aber jetzt hab ich ja die richtige funktion.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154444</guid><dc:creator><![CDATA[Uruk-h4j]]></dc:creator><pubDate>Sat, 14 Oct 2006 07:16:02 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Integer ? on Sun, 15 Oct 2006 06:17:06 GMT]]></title><description><![CDATA[<blockquote>
<p>ja is mir schon klar, aber ein einfaches &quot;=&quot; hatte er nicht genommen...</p>
</blockquote>
<p>Und wenn er &quot;==&quot; nicht genommen hätte, hättest du dann auch alle anderen Operatoren durchprobiert? Was wenn &quot;c + s&quot; oder &quot;c &lt;&lt; s&quot; gegangen wäre, hättest du dann auch erwartet dass das eine Zuweisung macht?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1154931</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1154931</guid><dc:creator><![CDATA[Plotzenhotz]]></dc:creator><pubDate>Sun, 15 Oct 2006 06:17:06 GMT</pubDate></item><item><title><![CDATA[Reply to Text in Integer ? on Sun, 15 Oct 2006 19:48:33 GMT]]></title><description><![CDATA[<p>@ Plotzenhotz:</p>
<p>Wie wäre es, wenn du einen anderen dumm von der seite Anlaberst. Das Problem hat sich erledigt und ich weiß, dass das nicht richtig war.</p>
<p>Schade dass das Forum für alle offen ist....</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155275</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155275</guid><dc:creator><![CDATA[Uruk-h4j]]></dc:creator><pubDate>Sun, 15 Oct 2006 19:48:33 GMT</pubDate></item></channel></rss>