<?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[problem]]></title><description><![CDATA[<p>ich habe folgendes Problem.<br />
Will meine Stringvariable s1 (die ständig geändert wird) in einem Array abspeichern. So das ich alles nachvollziehen kann.</p>
<p>Dachte so funktioniert es:</p>
<p>char s1[23];<br />
int Vs1[1000];</p>
<p>int i=0;<br />
Vs1[i]=s1;<br />
i=i+1;</p>
<p>Es soll also folgendermaßen funktionieren.<br />
Ein 23 Buchstaben langer String (s1) soll in einem Array (Vs1) abgespeichert werden, so dass ich die 1000 Strings abspeichern kann.<br />
Was mache ich denn falsch.<br />
Danke.</p>
<p>martin</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/182301/problem</link><generator>RSS for Node</generator><lastBuildDate>Wed, 15 Apr 2026 15:41:44 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/182301.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 23 May 2007 14:11:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problem on Wed, 23 May 2007 14:11:41 GMT]]></title><description><![CDATA[<p>ich habe folgendes Problem.<br />
Will meine Stringvariable s1 (die ständig geändert wird) in einem Array abspeichern. So das ich alles nachvollziehen kann.</p>
<p>Dachte so funktioniert es:</p>
<p>char s1[23];<br />
int Vs1[1000];</p>
<p>int i=0;<br />
Vs1[i]=s1;<br />
i=i+1;</p>
<p>Es soll also folgendermaßen funktionieren.<br />
Ein 23 Buchstaben langer String (s1) soll in einem Array (Vs1) abgespeichert werden, so dass ich die 1000 Strings abspeichern kann.<br />
Was mache ich denn falsch.<br />
Danke.</p>
<p>martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1290758</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1290758</guid><dc:creator><![CDATA[mac_lango]]></dc:creator><pubDate>Wed, 23 May 2007 14:11:41 GMT</pubDate></item><item><title><![CDATA[Reply to problem on Wed, 23 May 2007 14:49:41 GMT]]></title><description><![CDATA[<p>Frage am Rande:</p>
<p>Wenn du eine einfach String Variable hast, warum machste draus nicht nen CString anstdt nen Char?</p>
<p>Was schmeißt dir denn der Compiler raus. Muss ja ne Fehlermeldung geben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1290789</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1290789</guid><dc:creator><![CDATA[Uruk-h4j]]></dc:creator><pubDate>Wed, 23 May 2007 14:49:41 GMT</pubDate></item><item><title><![CDATA[Reply to problem on Wed, 23 May 2007 15:25:32 GMT]]></title><description><![CDATA[<p>Du kannst doch aber keinen String in einem int-Array abspeichern. Wenn dann müsstest Du die Strings (zumindest sehr wahrscheinlich) auf dem heap erzeugen und dann mit einem char*-Array arbeiten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1290824</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1290824</guid><dc:creator><![CDATA[connan]]></dc:creator><pubDate>Wed, 23 May 2007 15:25:32 GMT</pubDate></item><item><title><![CDATA[Reply to problem on Wed, 23 May 2007 23:44:26 GMT]]></title><description><![CDATA[<p>ja als fehlermeldung schmeißt er mir den code c2440 raus. Also wie gesagt, ich kann damit nicht viel anfangen-bin halt ein blutiger anfänger. Also muss ich mich mal über cstring schlau machen...?Muss ich die Variable (string) s1 dann gleich bei der deklaration als cstring festlegen?<br />
danke.</p>
<p>gruß martin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291146</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291146</guid><dc:creator><![CDATA[mac_lango]]></dc:creator><pubDate>Wed, 23 May 2007 23:44:26 GMT</pubDate></item><item><title><![CDATA[Reply to problem on Thu, 24 May 2007 05:47:18 GMT]]></title><description><![CDATA[<p>der CString hat glaub ich auch den operator[]</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291166</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291166</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 24 May 2007 05:47:18 GMT</pubDate></item><item><title><![CDATA[Reply to problem on Thu, 24 May 2007 07:27:12 GMT]]></title><description><![CDATA[<p>CString hat auch den array-Operator. Wäre auch komisch wenn nicht.</p>
<p>zur Fehlermeldung:<br />
&lt;&lt;Der Compiler ist nicht in der Lage, 'type1' in 'type2' umzuwandeln.&gt;&gt;</p>
<p>sollte eigentlich klar sein, warum. Du versuchst einen &quot;sting&quot; bzw char[] in eine Int-Variable reinzupacken. Dass wird wohl nichts.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291202</guid><dc:creator><![CDATA[Uruk-h4j]]></dc:creator><pubDate>Thu, 24 May 2007 07:27:12 GMT</pubDate></item><item><title><![CDATA[Reply to problem on Thu, 24 May 2007 07:30:36 GMT]]></title><description><![CDATA[<p>Warum nicht einfach die Klasse CStringArray verwenden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1291205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1291205</guid><dc:creator><![CDATA[Frenzy]]></dc:creator><pubDate>Thu, 24 May 2007 07:30:36 GMT</pubDate></item></channel></rss>