<?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[Eigene Datentypen entwickeln?]]></title><description><![CDATA[<p>Hi</p>
<p>ich brauche einen viel größeren integer!</p>
<p>Wie schreibt man einen eigenen Datentyp? Hat da jemand ein beispiel oder besser noch nen Tutorial?</p>
<p>Ich brauche halt ein int mit standart operatoren in das ich viel viel größere zahlen legen kann <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>THX</p>
<p>Dagsta</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/136450/eigene-datentypen-entwickeln</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 12:58:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/136450.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 10 Feb 2006 11:13:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Eigene Datentypen entwickeln? on Fri, 10 Feb 2006 11:13:45 GMT]]></title><description><![CDATA[<p>Hi</p>
<p>ich brauche einen viel größeren integer!</p>
<p>Wie schreibt man einen eigenen Datentyp? Hat da jemand ein beispiel oder besser noch nen Tutorial?</p>
<p>Ich brauche halt ein int mit standart operatoren in das ich viel viel größere zahlen legen kann <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>THX</p>
<p>Dagsta</p>
]]></description><link>https://www.c-plusplus.net/forum/post/990768</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/990768</guid><dc:creator><![CDATA[dagsta]]></dc:creator><pubDate>Fri, 10 Feb 2006 11:13:45 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Datentypen entwickeln? on Fri, 10 Feb 2006 11:35:10 GMT]]></title><description><![CDATA[<p>du definierst dir eine Klasse bigInt und schreibst dir die nötigen Rechen-Operationen dann selber. Der Anfang könnte z.B. so aussehen:</p>
<pre><code class="language-cpp">class bigInt
{
public:
  // Konstruktoren:
  bigInt(int i=0);         //von int-Wert (und Default)
  bigInt(const bigInt&amp; i); //Copy

  //Zuweisung:
  bigInt&amp; operator=(int i);
  bigInt&amp; operator=(const bigInt&amp; other);

  //kombinierte Operatoren:
  bigInt&amp; operator+=(const bigInt&amp; other);
  ...
private:
  //interne Daten
};

bigInt operator+(const bigInt&amp; l, const bigInt&amp; r)
{
  return bigInt(l)+=r;
}

...
</code></pre>
<p>(das kann am Ende genauso eingesetzt werden wie ein normales int - vorausgesetzt du machst in den Operatoren das richtige)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/990803</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/990803</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 10 Feb 2006 11:35:10 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Datentypen entwickeln? on Fri, 10 Feb 2006 13:14:22 GMT]]></title><description><![CDATA[<p>und wo ist da der speicher für die größere variable?</p>
<p>müsste da nicht irgentwo speicher belegt werden in dem meine daten stehen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/990890</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/990890</guid><dc:creator><![CDATA[-dagsta]]></dc:creator><pubDate>Fri, 10 Feb 2006 13:14:22 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Datentypen entwickeln? on Fri, 10 Feb 2006 13:18:19 GMT]]></title><description><![CDATA[<p>-dagsta schrieb:</p>
<blockquote>
<p>müsste da nicht irgentwo speicher belegt werden in dem meine daten stehen?</p>
</blockquote>
<p>Den kannst du dort hinpacken, wo ich &quot;interne Daten&quot; eingetragen habe (ich weiß ja nicht, wie groß bei dir die Zahlen werden sollen).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/990895</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/990895</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 10 Feb 2006 13:18:19 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Datentypen entwickeln? on Fri, 10 Feb 2006 13:33:39 GMT]]></title><description><![CDATA[<p>was willst du denn damit machen?</p>
<p>vielleicht reicht auch schon ein</p>
<pre><code class="language-cpp">long long longvariable;
</code></pre>
<p>da hast du 8 byte.<br />
da bekommst du zahlen bis 18446744073709551616 unter.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/990918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/990918</guid><dc:creator><![CDATA[asr]]></dc:creator><pubDate>Fri, 10 Feb 2006 13:33:39 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Datentypen entwickeln? on Fri, 10 Feb 2006 15:08:15 GMT]]></title><description><![CDATA[<p>weder long long noch sonstige int64 sind im c++ standard, sollt ma schon dazusagen, kann sehr relevant sein</p>
]]></description><link>https://www.c-plusplus.net/forum/post/990987</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/990987</guid><dc:creator><![CDATA[daHa]]></dc:creator><pubDate>Fri, 10 Feb 2006 15:08:15 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Datentypen entwickeln? on Sat, 11 Feb 2006 12:22:09 GMT]]></title><description><![CDATA[<p>dagsta schrieb:</p>
<blockquote>
<p>ich brauche einen viel größeren integer!</p>
</blockquote>
<p>Hallo Dagsta,</p>
<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-128696-and-start-is-10.html" rel="nofollow">Hier</a> findest Du noch einen Ansatz. In meinem Posting unter dem Taschenrechner ist ein Entwurf für eine Klasse Zahl.</p>
<p>Gruß<br />
Werner</p>
]]></description><link>https://www.c-plusplus.net/forum/post/991461</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/991461</guid><dc:creator><![CDATA[Werner Salomon]]></dc:creator><pubDate>Sat, 11 Feb 2006 12:22:09 GMT</pubDate></item><item><title><![CDATA[Reply to Eigene Datentypen entwickeln? on Sat, 11 Feb 2006 13:27:51 GMT]]></title><description><![CDATA[<p><a href="http://www.swox.com/gmp/" rel="nofollow">http://www.swox.com/gmp/</a> die gmp hat klassen für beliebig froße zahlen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/991528</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/991528</guid><dc:creator><![CDATA[Any]]></dc:creator><pubDate>Sat, 11 Feb 2006 13:27:51 GMT</pubDate></item></channel></rss>