<?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[Datentypen]]></title><description><![CDATA[<p>Hallo,<br />
ich möchte Funktionen für alle vordefinierten Datentypen schreiben, die sich<br />
aber alle ein wenig unterscheiden (dehalb kann ich kein template einbauen).<br />
Für welche Datentypen müsste ich die Funktion schreiben, dass ich alle ab-<br />
gedeckt habe?</p>
<p>Danke im Voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/198956/datentypen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 02 Oct 2026 18:26:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/198956.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Nov 2007 13:38:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 13:38:42 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich möchte Funktionen für alle vordefinierten Datentypen schreiben, die sich<br />
aber alle ein wenig unterscheiden (dehalb kann ich kein template einbauen).<br />
Für welche Datentypen müsste ich die Funktion schreiben, dass ich alle ab-<br />
gedeckt habe?</p>
<p>Danke im Voraus!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1410985</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1410985</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Tue, 27 Nov 2007 13:38:42 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 13:48:16 GMT]]></title><description><![CDATA[<p>puh das ist ne ganze Reihe. Da haben wir die ganzzahligen Typen und die Fliesskommazahlen, letztere sind</p>
<ul>
<li>float</li>
<li>double</li>
<li>long double</li>
</ul>
<p>dann gibts die integertypen:</p>
<ul>
<li>int</li>
<li>short</li>
<li>long</li>
<li>unsigned int</li>
<li>unsigned short</li>
<li>unsigned long</li>
<li>signed char</li>
<li>unsigned char</li>
</ul>
<p>(da nicht definiert ist ob char signed oder unsigned ist schreibs bei dem ran, alle anderen sind per default signed)<br />
Datentyp fuer wide characters:</p>
<ul>
<li>wchar_t</li>
</ul>
<p>und schliesslich noch</p>
<ul>
<li>bool</li>
</ul>
<p>Dann am Ende vielleicht noch alle moeglichen und unmoeglichen Pointer...</p>
<p>Ich behaupte mal ganz spontan, dass die Funktion fuer die meisten dieser Datentypen gleich aussehen wird, also machs doch per Template und spezialisiere, wo es nutwendig ist.</p>
<p>Auf manchen Compilern gibts noch ein long long.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1410995</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1410995</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Tue, 27 Nov 2007 13:48:16 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 13:51:05 GMT]]></title><description><![CDATA[<p>Für Pointer baruch ich die Funktionen nicht. Danke für die Liste! Brauche ich<br />
für string denn dann keine Funktion???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1410998</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1410998</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Tue, 27 Nov 2007 13:51:05 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 13:52:49 GMT]]></title><description><![CDATA[<p>pumuckl schrieb:</p>
<blockquote>
<p>(da nicht definiert ist ob char signed oder unsigned ist schreibs bei dem ran, alle anderen sind per default signed)</p>
</blockquote>
<p>Klar ist das definiert - 'char', 'signed char' und 'unsigned char' sind drei unabhängige Datentypen (allerdings stimmt der Wertebereich von 'char' mit einem seiner Brüder überein - welcher, ist Sache des Compilers).</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/16566">@D</a>: Wie stark unterscheiden sich denn die Versionen für die verschiedenen Datentypen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411000</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411000</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 27 Nov 2007 13:52:49 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 13:54:19 GMT]]></title><description><![CDATA[<p>std::string ist kein eingebauter Datentyp sondern eine Klasse der Standardbiblothek. char* wäre ja wieder ein Pointer, wobei er ja ein paar Besonderheiten hat (Zuweisung).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411003</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411003</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Tue, 27 Nov 2007 13:54:19 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 13:55:01 GMT]]></title><description><![CDATA[<p>string ist kein Vordefinierter Datentyp in dem Sinne, sondern eine Klasse aus der C++-Standardbibliothek. Ob du die Funktion fuer strings brauchst kann ich dir nicht sagen, du bist schliesslich derjenige der sie schreibt und verwenden will. Wenn du die Funktion fuer alles brauchst, was C++ dir mitliefert, inklusive Standardbibliothek, dann bis irgendwann mal, da gibts naemlich zig Container, Iteratoren, Allokatoren, Traits, Streams,... (fuer die du groesstenteils nie im leben eine solche Funktion brauchen wirst)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411004</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411004</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Tue, 27 Nov 2007 13:55:01 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:01:02 GMT]]></title><description><![CDATA[<p>Eine Frage hab ich noch:<br />
Zu welchen Datentypen gibt es long, signed und unsigned?</p>
<p>Ich habe im Internet nähmlich noch long float entdeckt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411011</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411011</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:01:02 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:07:23 GMT]]></title><description><![CDATA[<p>D schrieb:</p>
<blockquote>
<p>Eine Frage hab ich noch:<br />
Zu welchen Datentypen gibt es long, signed und unsigned?</p>
</blockquote>
<p>signed und unsigned gibt es für alle Ganzzahltypen (wobei außer für char (s.o.) 'signed T' und 'T' identisch sind), long für int und double, short für int.</p>
<p>(außderdem können sie auch alleine stehen - dann wird als Grundtyp int ergänzt ('long' ist auch &quot;nur&quot; eine Kurzform für 'signed long int'))</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411019</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411019</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:07:23 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:08:41 GMT]]></title><description><![CDATA[<p>long float waere mir voellig neu. Hast du einen Link?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411021</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411021</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:08:41 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:20:53 GMT]]></title><description><![CDATA[<p>Sry, hab nicht gescheid gelesen:<br />
In einigen älteren C-Systemen ist auch long float zulässig (nicht in ANSI-C)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411040</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411040</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:20:53 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:24:49 GMT]]></title><description><![CDATA[<p>Also, dann gibt es folgende Basisdatentypen (mit vollständigem Namen zur Über-<br />
sichts halber):</p>
<p>bool</p>
<p>signed int<br />
unsigned int</p>
<p>signed short int<br />
unsigned short int</p>
<p>signed long int<br />
unsigned long int</p>
<p>signed long long<br />
unsigned long long</p>
<p>signed char<br />
unsigned char<br />
w_char</p>
<p>float<br />
double<br />
long double</p>
<p>// und theoretisch dann noch<br />
string</p>
<p>Ich muss mal schauen, wo ich kürzen kann mit meinen Funktionen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411044</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411044</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:24:49 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:28:58 GMT]]></title><description><![CDATA[<p>D schrieb:</p>
<blockquote>
<p>signed char<br />
unsigned char<br />
w_char</p>
</blockquote>
<p>hier fehlt noch der reine 'char' - und der letzte heißt korrekt wchar_t</p>
<blockquote>
<p>string</p>
</blockquote>
<p>das ist immer noch kein eingebauter Typ von C++, sondern eine Klasse der Standardbibliothek (genauer gesagt - ein typedef auf <code>std::basic_string&lt;char,std::char_traits&lt;char&gt;,std::allocator&lt;char&gt; &gt;</code> )</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411047</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411047</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:28:58 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:33:06 GMT]]></title><description><![CDATA[<p>In meinem C++-Buch steht, dass signed char und nur char das gleiche sind!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411052</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411052</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:33:06 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:34:54 GMT]]></title><description><![CDATA[<p>stimmt ja auch</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411054</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411054</guid><dc:creator><![CDATA[c+++]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:34:54 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:37:16 GMT]]></title><description><![CDATA[<p>Äh, mal noch eine Frage:<br />
gibt es unsigned float und unsigned double???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411057</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411057</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:37:16 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:40:37 GMT]]></title><description><![CDATA[<p>D schrieb:</p>
<blockquote>
<p>In meinem C++-Buch steht, dass signed char und nur char das gleiche sind!!!</p>
</blockquote>
<p>In Büchern steht eben manchmal Unsinn.</p>
<p>D schrieb:</p>
<blockquote>
<p>gibt es unsigned float und unsigned double???</p>
</blockquote>
<p>Nein.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411059</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411059</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:40:37 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:41:22 GMT]]></title><description><![CDATA[<p>Und was ist dann der Unterschied zwischen char und unsigned char???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411061</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411061</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:41:22 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:45:08 GMT]]></title><description><![CDATA[<p>D schrieb:</p>
<blockquote>
<p>Und was ist dann der Unterschied zwischen char und unsigned char???</p>
</blockquote>
<p>Das hat CStoll doch schon geschrieben:</p>
<p>CStoll schrieb:</p>
<blockquote>
<p>'char', 'signed char' und 'unsigned char' sind drei unabhängige Datentypen (allerdings stimmt der Wertebereich von 'char' mit einem seiner Brüder überein - welcher, ist Sache des Compilers).</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1411064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411064</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:45:08 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:45:39 GMT]]></title><description><![CDATA[<p>c+++ schrieb:</p>
<blockquote>
<p>stimmt ja auch</p>
</blockquote>
<p>Nein, stimmt nicht - char ist eigenständig (sag mal, rede ich gegen eine Wand?):</p>
<p>Ansi Standard schrieb:</p>
<blockquote>
<p>3.9.1 Fundamental types [basic.fundamental]</p>
<p>1 Objects declared as characters char) shall be large enough to store<br />
any member of the implementation's basic character set. If a charac-<br />
ter from this set is stored in a character object, the integral value<br />
of that character object is equal to the value of the single character<br />
literal form of that character. It is implementation-defined whether<br />
a char object can hold negative values. Characters can be explicitly<br />
declared unsigned or signed. <strong>Plain char, signed char, and<br />
unsigned char are three distinct types.</strong> A char, a signed char, and an<br />
unsigned char occupy the same amount of storage and have the same</p>
<p>alignment requirements (_basic.types_); that is, they have the same<br />
object representation. For character types, all bits of the object<br />
representation participate in the value representation. For unsigned<br />
character types, all possible bit patterns of the value representation<br />
represent numbers. These requirements do not hold for other types. <strong>In<br />
any particular implementation, a plain char object can take on either<br />
the same values as a signed char or an unsigned char; which one is<br />
implementation-defined.</strong></p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1411065</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411065</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:45:39 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:46:46 GMT]]></title><description><![CDATA[<p>Ok, dann kann mich jetzt an die Funktionen ran machen. Vielen Dank noch einmal an Alle!!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411066</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411066</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:46:46 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 14:58:43 GMT]]></title><description><![CDATA[<p>Sry, aber das ist jetzt die letzte Frage. Also auf einer Internetseite habe<br />
ich gelesen es gäbe für Zeichen nur die Basisdatentypen char, signed char,<br />
unsigned char und wchar_t. so etwas wie signed und unsigned wchar_t gäbe es.<br />
Auf einer anderen Seite habe ich dann folgendes für Zeichen gelesen:<br />
(unsigned) wchar_t</p>
<p>Gibt es jetzt unsigned wchar_t oder nicht???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411075</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411075</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Tue, 27 Nov 2007 14:58:43 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 15:01:39 GMT]]></title><description><![CDATA[<p>Nein, gibt's nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411077</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411077</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 27 Nov 2007 15:01:39 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 15:13:01 GMT]]></title><description><![CDATA[<p>google nach &quot;signed unsigned char&quot; liefert als ersten folgenden, recht informativen link: <a href="http://www.trilithium.com/johan/2005/01/char-types/" rel="nofollow">http://www.trilithium.com/johan/2005/01/char-types/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411083</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411083</guid><dc:creator><![CDATA[pumuckl]]></dc:creator><pubDate>Tue, 27 Nov 2007 15:13:01 GMT</pubDate></item><item><title><![CDATA[Reply to Datentypen on Tue, 27 Nov 2007 15:23:41 GMT]]></title><description><![CDATA[<p>Die Seite habe ich auch als erstes gefunden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1411092</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1411092</guid><dc:creator><![CDATA[*D*]]></dc:creator><pubDate>Tue, 27 Nov 2007 15:23:41 GMT</pubDate></item></channel></rss>