<?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[Variabeltyp überprüfen]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie konnte man nochmal in einer if Abfrage überprüfen, welchen Typ (Int, Char, ect) eine Variabel hat??</p>
<p>MfG<br />
TheCaleb</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/190500/variabeltyp-überprüfen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 13:56:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/190500.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 23 Aug 2007 13:11:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Variabeltyp überprüfen on Thu, 23 Aug 2007 13:11:05 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>wie konnte man nochmal in einer if Abfrage überprüfen, welchen Typ (Int, Char, ect) eine Variabel hat??</p>
<p>MfG<br />
TheCaleb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350476</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350476</guid><dc:creator><![CDATA[TheCaleb]]></dc:creator><pubDate>Thu, 23 Aug 2007 13:11:05 GMT</pubDate></item><item><title><![CDATA[Reply to Variabeltyp überprüfen on Thu, 23 Aug 2007 13:18:22 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Nein das geht mit den normalen Datentypen in C++ nicht, da C++ davon ausgeht das der Datentyp zur Compiletime schon feststeht. Die Notwendigkeit einer solchen Prüfung ist in C++ meistens das Anzeichen eines schlechten Designs.</p>
<p>Die VCL bietet die Möglichkeit Variant zu benutzen, eine Art Container für verschiedene festgelegte Datentypen. Damit kann man solche Überprüfungen machen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350481</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350481</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Thu, 23 Aug 2007 13:18:22 GMT</pubDate></item><item><title><![CDATA[Reply to Variabeltyp überprüfen on Thu, 23 Aug 2007 13:25:22 GMT]]></title><description><![CDATA[<p>Danke,</p>
<p>gut dann frage ich halt mal anders: Wenn ich eine XML- Datei auslese, mit NodeValue und diese leer ist, dann tritt ein Fehler auf, dass NULL nicht zu String konvertiert werden kann.<br />
Wie kann ich das umgehen?<br />
Also manche von diesen Nodes sind halt leer und manche nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350492</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350492</guid><dc:creator><![CDATA[TheCaleb]]></dc:creator><pubDate>Thu, 23 Aug 2007 13:25:22 GMT</pubDate></item><item><title><![CDATA[Reply to Variabeltyp überprüfen on Thu, 23 Aug 2007 13:42:37 GMT]]></title><description><![CDATA[<p>Indem du testest ob der Node 0 ist bevor du an den String zuweist?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1350517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350517</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 23 Aug 2007 13:42:37 GMT</pubDate></item><item><title><![CDATA[Reply to Variabeltyp überprüfen on Thu, 23 Aug 2007 14:03:47 GMT]]></title><description><![CDATA[<p>Ich habe eine andere Lösung gefunden:</p>
<pre><code>if(NodeList-&gt;Get(x)-&gt;ChildNodes-&gt;FindNode(&quot;xxx&quot;)-&gt;NodeType==TEXT_NODE)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1350535</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350535</guid><dc:creator><![CDATA[TheCaleb]]></dc:creator><pubDate>Thu, 23 Aug 2007 14:03:47 GMT</pubDate></item><item><title><![CDATA[Reply to Variabeltyp überprüfen on Thu, 23 Aug 2007 17:03:02 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">if(NodeList-&gt;Nodes[x]-&gt;ChildNodes-&gt;Nodes[(string)&quot;xxx&quot;]-&gt;IsTextElement)
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1350641</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1350641</guid><dc:creator><![CDATA[OldMan00]]></dc:creator><pubDate>Thu, 23 Aug 2007 17:03:02 GMT</pubDate></item></channel></rss>