<?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 mit Ausgabe von Werten von Dynamischer Speicherverwaltung [Array]]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;

using namespace std;

int main()

{
	double *f1 = new double[13];
	f1[0] = 0.334423;
	f1[12] = 12.315;

        char *f2 = new char[256];
	f2[0] = 'a';
	f2[3] = '!';
	cout &lt;&lt; f2[0] &lt;&lt; f2[3] &lt;&lt; endl; // &lt;-- HIER WIRD NICHTS AUSGEGEBEN
	delete[] f1;
	delete[] f2;
	return EXIT_SUCCESS;
}
</code></pre>
<p><strong>= KEINE AUSGABE AUF DER KONSOLE</strong></p>
<p>Warum werden <code>f2[0]</code> und <code>f2[3]</code> nicht ausgegeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/245310/problem-mit-ausgabe-von-werten-von-dynamischer-speicherverwaltung-array</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 21:55:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/245310.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Jul 2009 16:58:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Ausgabe von Werten von Dynamischer Speicherverwaltung [Array] on Sun, 12 Jul 2009 16:58:49 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">#include &lt;iostream&gt;

using namespace std;

int main()

{
	double *f1 = new double[13];
	f1[0] = 0.334423;
	f1[12] = 12.315;

        char *f2 = new char[256];
	f2[0] = 'a';
	f2[3] = '!';
	cout &lt;&lt; f2[0] &lt;&lt; f2[3] &lt;&lt; endl; // &lt;-- HIER WIRD NICHTS AUSGEGEBEN
	delete[] f1;
	delete[] f2;
	return EXIT_SUCCESS;
}
</code></pre>
<p><strong>= KEINE AUSGABE AUF DER KONSOLE</strong></p>
<p>Warum werden <code>f2[0]</code> und <code>f2[3]</code> nicht ausgegeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1741583</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1741583</guid><dc:creator><![CDATA[skullyan]]></dc:creator><pubDate>Sun, 12 Jul 2009 16:58:49 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Ausgabe von Werten von Dynamischer Speicherverwaltung [Array] on Sun, 12 Jul 2009 17:02:28 GMT]]></title><description><![CDATA[<p>Bist du sicher, dass nichts ausgegeben wird, oder schliesst sich die Konsole einfach gleich wieder?</p>
<p>Hast du die Werte auch schon mit dem Debugger überprüft?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1741585</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1741585</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sun, 12 Jul 2009 17:02:28 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Ausgabe von Werten von Dynamischer Speicherverwaltung [Array] on Sun, 12 Jul 2009 17:08:31 GMT]]></title><description><![CDATA[<p>drakon schrieb:</p>
<blockquote>
<p>Bist du sicher, dass nichts ausgegeben wird, oder schliesst sich die Konsole einfach gleich wieder?</p>
<p>Hast du die Werte auch schon mit dem Debugger überprüft?</p>
</blockquote>
<p>Ja, komischerweise schließt die Konsole nicht mal sofort, obwohl ich kein <code>std::cin.get();</code> benutzt habe. Es wird einfach nichts ausgegeben...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1741589</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1741589</guid><dc:creator><![CDATA[skullyan]]></dc:creator><pubDate>Sun, 12 Jul 2009 17:08:31 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Ausgabe von Werten von Dynamischer Speicherverwaltung [Array] on Sun, 12 Jul 2009 17:18:03 GMT]]></title><description><![CDATA[<p>War da nicht irgendwas, dass solche Sachen von cout als C-Strings angesehen werden? Und das deswegen bis zum nicht vorhandenen Nullterminierungszeichen ausgegeben wird?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1741601</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1741601</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Sun, 12 Jul 2009 17:18:03 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Ausgabe von Werten von Dynamischer Speicherverwaltung [Array] on Sun, 12 Jul 2009 17:24:46 GMT]]></title><description><![CDATA[<p>skullyan schrieb:</p>
<blockquote>
<p>... Es wird einfach nichts ausgegeben...</p>
</blockquote>
<p>Welche Entwicklungsumgebung, Compiler benutzt Du?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1741603</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1741603</guid><dc:creator><![CDATA[egon2]]></dc:creator><pubDate>Sun, 12 Jul 2009 17:24:46 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Ausgabe von Werten von Dynamischer Speicherverwaltung [Array] on Sun, 12 Jul 2009 17:25:35 GMT]]></title><description><![CDATA[<p>egon2 schrieb:</p>
<blockquote>
<p>skullyan schrieb:</p>
<blockquote>
<p>... Es wird einfach nichts ausgegeben...</p>
</blockquote>
<p>Welche Entwicklungsumgebung, Compiler benutzt Du?</p>
</blockquote>
<p>VC++ 2008 Express</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1741604</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1741604</guid><dc:creator><![CDATA[skullyan]]></dc:creator><pubDate>Sun, 12 Jul 2009 17:25:35 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Ausgabe von Werten von Dynamischer Speicherverwaltung [Array] on Sun, 12 Jul 2009 17:35:36 GMT]]></title><description><![CDATA[<p>VC++ Expess 2008<br />
bringt mir diese Ausgabe:<br />
<strong>a!<br />
Drücken Sie eine beliebige Taste . . .</strong><br />
höchst rätselhaft!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1741612</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1741612</guid><dc:creator><![CDATA[egon2]]></dc:creator><pubDate>Sun, 12 Jul 2009 17:35:36 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Ausgabe von Werten von Dynamischer Speicherverwaltung [Array] on Sun, 12 Jul 2009 17:48:24 GMT]]></title><description><![CDATA[<p>SeppJ schrieb:</p>
<blockquote>
<p>War da nicht irgendwas, dass solche Sachen von cout als C-Strings angesehen werden? Und das deswegen bis zum nicht vorhandenen Nullterminierungszeichen ausgegeben wird?</p>
</blockquote>
<p>Er gibt da lediglich 2 char aus.. Nix mit (C-)String..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1741617</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1741617</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Sun, 12 Jul 2009 17:48:24 GMT</pubDate></item></channel></rss>