<?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 der Datentyp-Syntax]]></title><description><![CDATA[<p>Was bedeutet folgende Syntax, bei der der Datentyp zuerst und dahinter in Klammern eine Variable steht:</p>
<pre><code class="language-cpp">int(i)
double(j)
</code></pre>
<p>Diese beiden Code-Fragmente stammen aus verschiedenen C++-Programmen, stehen aber jeweils innerhalb der Klammern eines Funktions- oder Methodenaufrufes. Wird hier etwas gecastet oder handelt es sich um eine Art Präfix oder ...?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/173379/problem-mit-der-datentyp-syntax</link><generator>RSS for Node</generator><lastBuildDate>Fri, 18 Sep 2026 06:48:35 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/173379.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Feb 2007 16:04:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit der Datentyp-Syntax on Wed, 14 Feb 2007 16:04:53 GMT]]></title><description><![CDATA[<p>Was bedeutet folgende Syntax, bei der der Datentyp zuerst und dahinter in Klammern eine Variable steht:</p>
<pre><code class="language-cpp">int(i)
double(j)
</code></pre>
<p>Diese beiden Code-Fragmente stammen aus verschiedenen C++-Programmen, stehen aber jeweils innerhalb der Klammern eines Funktions- oder Methodenaufrufes. Wird hier etwas gecastet oder handelt es sich um eine Art Präfix oder ...?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1228883</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1228883</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 14 Feb 2007 16:04:53 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit der Datentyp-Syntax on Wed, 14 Feb 2007 16:17:27 GMT]]></title><description><![CDATA[<p>ist ein cast ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1228903</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1228903</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 14 Feb 2007 16:17:27 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit der Datentyp-Syntax on Wed, 14 Feb 2007 16:19:17 GMT]]></title><description><![CDATA[<p>Bedeutet das, dass die Syntax äquivalent ist zu (int)i und (double)j ??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1228905</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1228905</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 14 Feb 2007 16:19:17 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit der Datentyp-Syntax on Wed, 14 Feb 2007 16:34:16 GMT]]></title><description><![CDATA[<p>nein ... es gibt verschiedene casts ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1228924</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1228924</guid><dc:creator><![CDATA[*D*Evil]]></dc:creator><pubDate>Wed, 14 Feb 2007 16:34:16 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit der Datentyp-Syntax on Wed, 14 Feb 2007 16:41:16 GMT]]></title><description><![CDATA[<p>(D)Evil schrieb:</p>
<blockquote>
<p>nein ... es gibt verschiedene casts ...</p>
</blockquote>
<p>Aha, und was ist der Unterschied zwischen diesen beiden cast-Varianten? Habe hier drei fette Bücher, aber ich finde in keinem davon eine Erklärung dieser Syntax.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1228931</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1228931</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 14 Feb 2007 16:41:16 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit der Datentyp-Syntax on Wed, 14 Feb 2007 16:46:49 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>also ich bin bei solchen &quot;Minischnipseln&quot; doch recht vorsichtig - in C++ kann alles Mögliche alles Mögliche bedeuten ( <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>
<p>Magst Du mal ein Beispiel mit (ein wenig) Kontext zeigen ?<br />
Auf den ersten Blick sieht das aber tatsächlihc nach &quot;function style cast&quot; aus, der aber IIRC identisch zum &quot;C style cast&quot; arbeitet .... also &quot;int(i)&quot; identisch mit &quot;(int)i&quot; .... wie gesagt: Antwort unter Vorbehalt.</p>
<p>Gruß,</p>
<p>Simon2.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1228936</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1228936</guid><dc:creator><![CDATA[Simon2]]></dc:creator><pubDate>Wed, 14 Feb 2007 16:46:49 GMT</pubDate></item></channel></rss>