<?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[kurze frage nach variablentyp]]></title><description><![CDATA[<p>hallo!</p>
<p>ich brauche ein array für die folgende struktur:</p>
<blockquote>
<p>char char char char .....<br />
int int int int .....<br />
.<br />
.<br />
.<br />
int int int int....</p>
</blockquote>
<p>ich dachte da an ein string array.</p>
<p>meine frage ist jetzt: kann ich dann noch auf die ints zugreifen?</p>
<p>geht also sowas:</p>
<pre><code class="language-cpp">string test = &quot;2kjaglkjg&quot;;
int test2 = test[0];
test2 += 2;
cout&lt;&lt;test2; //ausgabe : 4
</code></pre>
<p>ist das so möglich oder muss ich da auf n andren variablentyp umsteigen?</p>
<p>greets hokage</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/190101/kurze-frage-nach-variablentyp</link><generator>RSS for Node</generator><lastBuildDate>Fri, 25 Sep 2026 17:08:27 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/190101.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 19 Aug 2007 16:19:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to kurze frage nach variablentyp on Sun, 19 Aug 2007 16:27:12 GMT]]></title><description><![CDATA[<p>hallo!</p>
<p>ich brauche ein array für die folgende struktur:</p>
<blockquote>
<p>char char char char .....<br />
int int int int .....<br />
.<br />
.<br />
.<br />
int int int int....</p>
</blockquote>
<p>ich dachte da an ein string array.</p>
<p>meine frage ist jetzt: kann ich dann noch auf die ints zugreifen?</p>
<p>geht also sowas:</p>
<pre><code class="language-cpp">string test = &quot;2kjaglkjg&quot;;
int test2 = test[0];
test2 += 2;
cout&lt;&lt;test2; //ausgabe : 4
</code></pre>
<p>ist das so möglich oder muss ich da auf n andren variablentyp umsteigen?</p>
<p>greets hokage</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1347646</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1347646</guid><dc:creator><![CDATA[hokage]]></dc:creator><pubDate>Sun, 19 Aug 2007 16:27:12 GMT</pubDate></item><item><title><![CDATA[Reply to kurze frage nach variablentyp on Sun, 19 Aug 2007 16:31:26 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39488.html" rel="nofollow">C++-FAQ: Einmal von Zahl nach String und zurücl</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1347660</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1347660</guid><dc:creator><![CDATA[The-Kenny]]></dc:creator><pubDate>Sun, 19 Aug 2007 16:31:26 GMT</pubDate></item></channel></rss>