<?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[Ein stilistische Frage zu itoa()]]></title><description><![CDATA[<p>Aloha,</p>
<p>ich benutze sehr häufig die Umwandlung von einem INT in einen CSTRING.</p>
<p>Ich realisiere das so beispielsweise:</p>
<pre><code>int ID = 24255;
char text[12];
CString ausgabe = itoa(ID,text,10);
</code></pre>
<p>itoa will nun mal einen char* haben als zweiten Parameter.<br />
Das sieht aber irgendwie nach dicker Hackerscheisse aus.</p>
<p>Kann man dies eleganter lösen, bzw. irgendetwas &quot;wegkürzen&quot; ?</p>
<p>Danke und Grüße</p>
<p>BOA</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/62446/ein-stilistische-frage-zu-itoa</link><generator>RSS for Node</generator><lastBuildDate>Thu, 04 Jun 2026 02:45:41 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/62446.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 23 Jan 2004 13:38:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Ein stilistische Frage zu itoa() on Fri, 23 Jan 2004 13:38:40 GMT]]></title><description><![CDATA[<p>Aloha,</p>
<p>ich benutze sehr häufig die Umwandlung von einem INT in einen CSTRING.</p>
<p>Ich realisiere das so beispielsweise:</p>
<pre><code>int ID = 24255;
char text[12];
CString ausgabe = itoa(ID,text,10);
</code></pre>
<p>itoa will nun mal einen char* haben als zweiten Parameter.<br />
Das sieht aber irgendwie nach dicker Hackerscheisse aus.</p>
<p>Kann man dies eleganter lösen, bzw. irgendetwas &quot;wegkürzen&quot; ?</p>
<p>Danke und Grüße</p>
<p>BOA</p>
]]></description><link>https://www.c-plusplus.net/forum/post/442578</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/442578</guid><dc:creator><![CDATA[BOA]]></dc:creator><pubDate>Fri, 23 Jan 2004 13:38:40 GMT</pubDate></item><item><title><![CDATA[Reply to Ein stilistische Frage zu itoa() on Fri, 23 Jan 2004 13:39:40 GMT]]></title><description><![CDATA[<p>CString::Format könnte Dir helfen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/442581</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/442581</guid><dc:creator><![CDATA[Knuddlbaer]]></dc:creator><pubDate>Fri, 23 Jan 2004 13:39:40 GMT</pubDate></item><item><title><![CDATA[Reply to Ein stilistische Frage zu itoa() on Fri, 23 Jan 2004 13:43:29 GMT]]></title><description><![CDATA[<p>Aloha Knuddelbaer,</p>
<p>oh ja, die ist schon um Längen schöner als meine Variante.<br />
Klingt irgendwie nach CString-Basiswissen, bin ich aber net drauf gekommen.</p>
<p>Hab Dank</p>
<p>Grüße</p>
<p>BOA</p>
]]></description><link>https://www.c-plusplus.net/forum/post/442586</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/442586</guid><dc:creator><![CDATA[BOA]]></dc:creator><pubDate>Fri, 23 Jan 2004 13:43:29 GMT</pubDate></item><item><title><![CDATA[Reply to Ein stilistische Frage zu itoa() on Sat, 24 Jan 2004 01:41:19 GMT]]></title><description><![CDATA[<p>BOA schrieb:</p>
<blockquote>
<p>Das sieht aber irgendwie nach dicker Hackerscheisse aus.</p>
</blockquote>
<p>*g* Ja, so könnte man es ausdrücken.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/442931</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/442931</guid><dc:creator><![CDATA[Walli]]></dc:creator><pubDate>Sat, 24 Jan 2004 01:41:19 GMT</pubDate></item></channel></rss>