<?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[Doofe Frage zu char*]]></title><description><![CDATA[<p>Wo liegt hier mein Fehler?</p>
<p>char* ein;</p>
<p>cout&lt;&lt;&quot;Bitte geben Sie irgentwas ein :&quot;;<br />
cin&gt;&gt;ein;</p>
<p>wo ist mei Fehler?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/133616/doofe-frage-zu-char</link><generator>RSS for Node</generator><lastBuildDate>Fri, 28 Aug 2026 00:53:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/133616.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 19 Jan 2006 10:48:01 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 10:48:01 GMT]]></title><description><![CDATA[<p>Wo liegt hier mein Fehler?</p>
<p>char* ein;</p>
<p>cout&lt;&lt;&quot;Bitte geben Sie irgentwas ein :&quot;;<br />
cin&gt;&gt;ein;</p>
<p>wo ist mei Fehler?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970402</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970402</guid><dc:creator><![CDATA[trivial]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:48:01 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 10:50:41 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Was kbekommst du den für eine Fehlermeldung? Am besten du benutzt:</p>
<pre><code class="language-cpp">std::string
</code></pre>
<p>statt</p>
<pre><code class="language-cpp">char*
</code></pre>
<p>und damit funktioniert es auf jeden Fall.</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970408</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970408</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:50:41 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 10:52:14 GMT]]></title><description><![CDATA[<p>Du hast keinen Speicher reserviert, an den du schreiben willst - op&gt;&gt;(istream,char*) schreibt in den Bereich, auf den dein char-Pointer verweist, und der gehört dir nicht (weil der Pointer nicht initialisiert ist).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970411</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970411</guid><dc:creator><![CDATA[CStoll (off)]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:52:14 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 10:53:16 GMT]]></title><description><![CDATA[<p>ja und wie bekomme ich daraus wieder ein char*<br />
Ich brauch char* für<br />
system(variable)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970412</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970412</guid><dc:creator><![CDATA[trivial]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:53:16 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 10:54:13 GMT]]></title><description><![CDATA[<p>Reservier doch fuer deinen char-Pointer soviel Speicher wie du brauchst!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970414</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970414</guid><dc:creator><![CDATA[moe szyslak]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:54:13 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 10:54:28 GMT]]></title><description><![CDATA[<p>trivial schrieb:</p>
<blockquote>
<p>ja und wie bekomme ich daraus wieder ein char*<br />
Ich brauch char* für<br />
system(variable)</p>
</blockquote>
<p>&quot;str.c_str()&quot; liefert einen const char* (der in den meisten Fällen ausreicht).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970415</guid><dc:creator><![CDATA[CStoll (off)]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:54:28 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 10:56:14 GMT]]></title><description><![CDATA[<p>danke das ist es was ich gesucht hab.<br />
malloc.</p>
<p>Gruss</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970417</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970417</guid><dc:creator><![CDATA[trivial]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:56:14 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 10:57:40 GMT]]></title><description><![CDATA[<p>malloc?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970418</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970418</guid><dc:creator><![CDATA[ser1al]]></dc:creator><pubDate>Thu, 19 Jan 2006 10:57:40 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 11:29:20 GMT]]></title><description><![CDATA[<p>trivial schrieb:</p>
<blockquote>
<p>danke das ist es was ich gesucht hab.<br />
malloc.</p>
</blockquote>
<p>malloc() hat in vernünftigen C++ Programmen nichts mehr zu suchen - wenn du dich unbedingt selber um die Speicherverwaltung kümmern willst, nimm lieber new.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970440</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970440</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Thu, 19 Jan 2006 11:29:20 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 12:07:37 GMT]]></title><description><![CDATA[<p>genau..</p>
<p>darum schreib ich jetzt mein beispiel von vorn:</p>
<pre><code class="language-cpp">char* ein = new char[20];   //speicher für char anfordern, wieviel du brauchst

//mach was mit dem char

delete[] ein;            //speicher freigeben
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/970460</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970460</guid><dc:creator><![CDATA[ser1al]]></dc:creator><pubDate>Thu, 19 Jan 2006 12:07:37 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 12:06:36 GMT]]></title><description><![CDATA[<p>Fordere bloss nicht zuviel Speicher an, der Benutzer will eh nichts eingeben :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970472</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970472</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Thu, 19 Jan 2006 12:06:36 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 12:08:01 GMT]]></title><description><![CDATA[<p>LordJaxom schrieb:</p>
<blockquote>
<p>Fordere bloss nicht zuviel Speicher an, der Benutzer will eh nichts eingeben :p</p>
</blockquote>
<p>hm....sorry hats vergessen..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/970473</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970473</guid><dc:creator><![CDATA[ser1al]]></dc:creator><pubDate>Thu, 19 Jan 2006 12:08:01 GMT</pubDate></item><item><title><![CDATA[Reply to Doofe Frage zu char* on Thu, 19 Jan 2006 15:02:09 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">char ein[50];

cin &gt;&gt; ein;
</code></pre>
<p>Machts doch nicht immer so kompliziert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_tongue"
      title=":-P"
      alt="😛"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/970638</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/970638</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 19 Jan 2006 15:02:09 GMT</pubDate></item></channel></rss>