<?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[String in eineVariabel rein geht das]]></title><description><![CDATA[<p>Hallo</p>
<p>Kann man einen string in eine variabel rein bekommen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/117670/string-in-einevariabel-rein-geht-das</link><generator>RSS for Node</generator><lastBuildDate>Fri, 21 Aug 2026 04:36:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/117670.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 10 Aug 2005 08:43:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 08:43:21 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Kann man einen string in eine variabel rein bekommen ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849153</guid><dc:creator><![CDATA[localhost]]></dc:creator><pubDate>Wed, 10 Aug 2005 08:43:21 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 09:09:51 GMT]]></title><description><![CDATA[<p>ja<br />
std::string</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849167</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849167</guid><dc:creator><![CDATA[lollig_trollig]]></dc:creator><pubDate>Wed, 10 Aug 2005 09:09:51 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 09:14:13 GMT]]></title><description><![CDATA[<p>Ja, mit dem Zuweisungsoperator.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849171</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849171</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Wed, 10 Aug 2005 09:14:13 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 09:21:27 GMT]]></title><description><![CDATA[<p>also</p>
<pre><code class="language-cpp">char n;
std::String eingabe;
eingabe = &quot;I_00000000000000000000000000001&quot;;

n = eingabe;
cout &lt;&lt; n &lt;&lt; endl;
</code></pre>
<p>Wer n dan I_0000000000000000000000001<br />
??</p>
<p>Hab jetzt kein compeiler hier und daheim kein internet</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849173</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849173</guid><dc:creator><![CDATA[localhost]]></dc:creator><pubDate>Wed, 10 Aug 2005 09:21:27 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 09:23:04 GMT]]></title><description><![CDATA[<p>probier's aus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849176</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Wed, 10 Aug 2005 09:23:04 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 09:26:55 GMT]]></title><description><![CDATA[<p>localhost schrieb:</p>
<blockquote>
<p>also</p>
<pre><code class="language-cpp">char n;
std::String eingabe;
eingabe = &quot;I_00000000000000000000000000001&quot;;

n = eingabe;
cout &lt;&lt; n &lt;&lt; endl;
</code></pre>
<p>Wer n dan I_0000000000000000000000001<br />
??</p>
<p>Hab jetzt kein compeiler hier und daheim kein internet</p>
</blockquote>
<p>hast du eine entwicklungsumgebung überhaupt?<br />
es heisst immer noch<br />
std::string und nicht std::String</p>
<p>und das zweite ob<br />
n= eingabe ist</p>
<p>kann man auch so beantworten</p>
<p>Auto a;<br />
a.SetSeats(5);</p>
<p>PersonenMasse b;<br />
b.SetMasse(300);</p>
<p>a.Beladen(b); // &lt;--- viel spass <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/849184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849184</guid><dc:creator><![CDATA[lollig_trollig]]></dc:creator><pubDate>Wed, 10 Aug 2005 09:26:55 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 09:36:48 GMT]]></title><description><![CDATA[<p>localhost schrieb:</p>
<blockquote>
<p>Wer n dan I_0000000000000000000000001<br />
??</p>
</blockquote>
<p>Du stellst Fragen. n ist char und hat als zulässige Werte <strong>einzelne Zeichen</strong>. Der Compiler schmeißt dir deine Zuweisung sofort um die Ohren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849195</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849195</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Wed, 10 Aug 2005 09:36:48 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 09:43:07 GMT]]></title><description><![CDATA[<p>Bashar schrieb:</p>
<blockquote>
<p>localhost schrieb:</p>
<blockquote>
<p>Wer n dan I_0000000000000000000000001<br />
??</p>
</blockquote>
<p>Du stellst Fragen. n ist char und hat als zulässige Werte <strong>einzelne Zeichen</strong>. Der Compiler schmeißt dir deine Zuweisung sofort um die Ohren.</p>
</blockquote>
<p>ne nicht ganz</p>
<p>&quot;char&quot; so geschrieben ist</p>
<p><strong>EIN Zeichen</strong></p>
<p>pointer auf char ist was anderes, da hättest du recht <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="😉"
    /><br />
z.b. &quot;char *&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849200</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849200</guid><dc:creator><![CDATA[lollig_trollig]]></dc:creator><pubDate>Wed, 10 Aug 2005 09:43:07 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 09:47:41 GMT]]></title><description><![CDATA[<p>lollig_trollig schrieb:</p>
<blockquote>
<p>Bashar schrieb:</p>
<blockquote>
<p>localhost schrieb:</p>
<blockquote>
<p>Wer n dan I_0000000000000000000000001<br />
??</p>
</blockquote>
<p>Du stellst Fragen. n ist char und hat als zulässige Werte <strong>einzelne Zeichen</strong>. Der Compiler schmeißt dir deine Zuweisung sofort um die Ohren.</p>
</blockquote>
<p>ne nicht ganz</p>
<p>&quot;char&quot; so geschrieben ist</p>
<p><strong>EIN Zeichen</strong></p>
<p>pointer auf char ist was anderes, da hättest du recht <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="😉"
    /><br />
z.b. &quot;char *&quot;</p>
</blockquote>
<p>Von char* ist hier gar nicht die Rede und ob char oder char* ist hier voellig egal, der Compiler wird sich<br />
melden. Lies dir Bashars Kommentar nochmal durch.</p>
<p>mfg<br />
v R</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849203</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849203</guid><dc:creator><![CDATA[virtuell Realisticer]]></dc:creator><pubDate>Wed, 10 Aug 2005 09:47:41 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 11:02:23 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>@OP sag uns doch endlich mal was du genau vorhast. Du hast jeztz schon mehrere threads die sich irgendwie immer um das eine thema drehen. Wie wärs wenn du sowas fragst wie:</p>
<blockquote>
<p>Ich hab das und das problem, wie kann ich das am besten lösen ? Ich habe mir das und das überlegt. Bei A hab ich aber das problem und bei B das. Gibt es vll eine bessere lösung ?</p>
</blockquote>
<p>Ich glaub dann kommst du schneller zu einem ergebnis.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849293</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849293</guid><dc:creator><![CDATA[prolog]]></dc:creator><pubDate>Wed, 10 Aug 2005 11:02:23 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 11:29:35 GMT]]></title><description><![CDATA[<p>Glaube jetzt habe ich kapiert was der OP will.<br />
Wahrscheinlich sowas</p>
<pre><code class="language-cpp">int anInt = 3;
string varptr = &quot;anInt&quot;;
int anotherInt = indirection_operator(varptr); // anotherInt bekommt den wert von anInt
</code></pre>
<p>Er sagt ja in einem anderen thread er kennt nur php. Soviel Ich weiss sind solche Konstrukte in vielen interpretierten Sprachen zulässig.<br />
Leider geht das nicht in C/C++<br />
Kurt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849315</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849315</guid><dc:creator><![CDATA[ZuK]]></dc:creator><pubDate>Wed, 10 Aug 2005 11:29:35 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 11:37:23 GMT]]></title><description><![CDATA[<p>stringstream <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/849322</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849322</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Wed, 10 Aug 2005 11:37:23 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 13:30:25 GMT]]></title><description><![CDATA[<p>dafon verstehe ich garnichts.<br />
Oder nicht viel.<br />
Aber ich habe in eine string was drin stehen string einagbe =&quot;I_0000000000000000000001&quot;;<br />
Und ich habe auch eine #define I_0000000000000000000000001 &quot;blAbla&quot;<br />
Wenn ich jetzt den string in eine variabel rein bekomme dan kann ich den doch als magro ausgeben oder ?</p>
<p>Wenn ich cout &lt;&lt; eingabe; mache kommt nur I_0000000000000000001 und nicht der magro</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849408</guid><dc:creator><![CDATA[localhost]]></dc:creator><pubDate>Wed, 10 Aug 2005 13:30:25 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Wed, 10 Aug 2005 14:17:43 GMT]]></title><description><![CDATA[<p>Willst du als Output &quot;blAbla&quot; sehen ?<br />
Dann machs so</p>
<pre><code class="language-cpp">#define I_0000000000000000000000001 &quot;blAbla&quot; 
string eingabe = I_0000000000000000000000001 ;
cout &lt;&lt; eingabe;
</code></pre>
<p>Kurt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/849462</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/849462</guid><dc:creator><![CDATA[ZuK]]></dc:creator><pubDate>Wed, 10 Aug 2005 14:17:43 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Fri, 12 Aug 2005 08:07:05 GMT]]></title><description><![CDATA[<p>ZuK schrieb:</p>
<blockquote>
<p>Willst du als Output &quot;blAbla&quot; sehen ?<br />
Dann machs so</p>
<pre><code class="language-cpp">#define I_0000000000000000000000001 &quot;blAbla&quot; 
string eingabe = I_0000000000000000000000001 ;
cout &lt;&lt; eingabe;
</code></pre>
<p>Kurt</p>
</blockquote>
<p>ja will ich hatt aber bis jetzt noch nicht soricht geklabt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/850573</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/850573</guid><dc:creator><![CDATA[localhost]]></dc:creator><pubDate>Fri, 12 Aug 2005 08:07:05 GMT</pubDate></item><item><title><![CDATA[Reply to String in eineVariabel rein geht das on Fri, 12 Aug 2005 08:18:29 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">string I_0000000000000000000000001(&quot;bla&quot;);
cout &lt;&lt;I_0000000000000000000000001;
</code></pre>
<p>Für was steht überhaupt dieses I_0000000000000000000000001 ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/850579</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/850579</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Fri, 12 Aug 2005 08:18:29 GMT</pubDate></item></channel></rss>