<?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[[Erledigt] void ???]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich bin C/C++ Anfänger und habe Probleme das Schlüsselwort &quot;void&quot; einzuordnen. Mein Buch hier scheint es nicht herzugeben und die Suche hängt.</p>
<p>Mein Compiler akzeptiert:</p>
<pre><code class="language-cpp">unsigned int get_color() const;
	unsigned int get_size() const;
	unsigned int get_code() const;
	const char *get_comment() const;
</code></pre>
<p>Akzeptiert aber auch:</p>
<pre><code class="language-cpp">unsigned int get_color(void) const;
	unsigned int get_size(void) const;
	unsigned int get_code(void) const;
	const char *get_comment(void) const;
</code></pre>
<p>Wo ist der Unteschied? Was macht void? Ergänzt der Compiler vielleicht im ersten Quellcode das void automatisch?</p>
<p>Wäre für eine kurze Hilfestellung oder auch einen ausführlichen Link danbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/266134/erledigt-void</link><generator>RSS for Node</generator><lastBuildDate>Thu, 03 Sep 2026 15:44:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/266134.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 May 2010 13:21:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [Erledigt] void ??? on Tue, 04 May 2010 13:40:13 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich bin C/C++ Anfänger und habe Probleme das Schlüsselwort &quot;void&quot; einzuordnen. Mein Buch hier scheint es nicht herzugeben und die Suche hängt.</p>
<p>Mein Compiler akzeptiert:</p>
<pre><code class="language-cpp">unsigned int get_color() const;
	unsigned int get_size() const;
	unsigned int get_code() const;
	const char *get_comment() const;
</code></pre>
<p>Akzeptiert aber auch:</p>
<pre><code class="language-cpp">unsigned int get_color(void) const;
	unsigned int get_size(void) const;
	unsigned int get_code(void) const;
	const char *get_comment(void) const;
</code></pre>
<p>Wo ist der Unteschied? Was macht void? Ergänzt der Compiler vielleicht im ersten Quellcode das void automatisch?</p>
<p>Wäre für eine kurze Hilfestellung oder auch einen ausführlichen Link danbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1892252</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1892252</guid><dc:creator><![CDATA[darkfate]]></dc:creator><pubDate>Tue, 04 May 2010 13:40:13 GMT</pubDate></item><item><title><![CDATA[Reply to [Erledigt] void ??? on Tue, 04 May 2010 13:23:17 GMT]]></title><description><![CDATA[<p>Nö, es ist nur übersichtlicher für einen Nutzer und zeigt dass die Funktion keine Parameter entgegennimmt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1892254</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1892254</guid><dc:creator><![CDATA[Icematix]]></dc:creator><pubDate>Tue, 04 May 2010 13:23:17 GMT</pubDate></item><item><title><![CDATA[Reply to [Erledigt] void ??? on Tue, 04 May 2010 13:24:42 GMT]]></title><description><![CDATA[<p>Icematix schrieb:</p>
<blockquote>
<p>Nö, es ist nur übersichtlicher für einen Nutzer und zeigt dass die Funktion keine Parameter entgegennimmt.</p>
</blockquote>
<p>Das erste ist die C++ Variante, das zweite die C Variante die aus Kompatibilitätsgründen akzeptiert wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1892255</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1892255</guid><dc:creator><![CDATA[Janjan]]></dc:creator><pubDate>Tue, 04 May 2010 13:24:42 GMT</pubDate></item><item><title><![CDATA[Reply to [Erledigt] void ??? on Tue, 04 May 2010 13:33:25 GMT]]></title><description><![CDATA[<p>Janjan schrieb:</p>
<blockquote>
<p>Das erste ist die C++ Variante, das zweite die C Variante die aus Kompatibilitätsgründen akzeptiert wird.</p>
</blockquote>
<p>Was macht dann das void in C?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1892260</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1892260</guid><dc:creator><![CDATA[darkfate]]></dc:creator><pubDate>Tue, 04 May 2010 13:33:25 GMT</pubDate></item><item><title><![CDATA[Reply to [Erledigt] void ??? on Tue, 04 May 2010 13:37:57 GMT]]></title><description><![CDATA[<p>darkfate schrieb:</p>
<blockquote>
<p>Janjan schrieb:</p>
<blockquote>
<p>Das erste ist die C++ Variante, das zweite die C Variante die aus Kompatibilitätsgründen akzeptiert wird.</p>
</blockquote>
<p>Was macht dann das void in C?</p>
</blockquote>
<p>Das sagt aus, dass die Funktion keine Parameter entgegennimmt. Das musste man in C explitiz durch void angeben. In C++ ist das nicht mehr notwendig.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1892264</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1892264</guid><dc:creator><![CDATA[dfgdfg]]></dc:creator><pubDate>Tue, 04 May 2010 13:37:57 GMT</pubDate></item><item><title><![CDATA[Reply to [Erledigt] void ??? on Tue, 04 May 2010 13:39:55 GMT]]></title><description><![CDATA[<p>dfgdfg schrieb:</p>
<blockquote>
<p>darkfate schrieb:</p>
<blockquote>
<p>Janjan schrieb:</p>
<blockquote>
<p>Das erste ist die C++ Variante, das zweite die C Variante die aus Kompatibilitätsgründen akzeptiert wird.</p>
</blockquote>
<p>Was macht dann das void in C?</p>
</blockquote>
<p>Das sagt aus, dass die Funktion keine Parameter entgegennimmt. Das musste man in C explitiz durch void angeben. In C++ ist das nicht mehr notwendig.</p>
</blockquote>
<p>Super. Danke an alle Antwortenden</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1892269</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1892269</guid><dc:creator><![CDATA[darkfate]]></dc:creator><pubDate>Tue, 04 May 2010 13:39:55 GMT</pubDate></item></channel></rss>