<?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[BigInteger]]></title><description><![CDATA[<p>... wollte mein Collatz-Programm auf beliebig große Integer umstellen, wählte Bibliothek BigInteger, allerdings noch ein Link-Problem, das ich nicht verstehe.<br />
Vielleicht gibt es hier Erfahrung. MS VC++ 2008.</p>
<p>//deleted (gelöst)</p>
<p>Compiler o.k.<br />
Linker-Meldung: 2001 und 1120<br />
BigIntegerUtils.obj : error LNK2001: Nicht aufgelöstes externes Symbol &quot;&quot;public: __thiscall BigInteger::BigInteger(class BigUnsigned const &amp;,enum BigInteger::Sign)&quot; (??0BigInteger@@QAE@ABVBigUnsigned@@W4Sign@0@@Z)&quot;.<br />
fatal error LNK1120: 1 nicht aufgelöste externe Verweise.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/217713/biginteger</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 07:59:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/217713.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 10 Jul 2008 10:40:34 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to BigInteger on Thu, 10 Jul 2008 15:06:04 GMT]]></title><description><![CDATA[<p>... wollte mein Collatz-Programm auf beliebig große Integer umstellen, wählte Bibliothek BigInteger, allerdings noch ein Link-Problem, das ich nicht verstehe.<br />
Vielleicht gibt es hier Erfahrung. MS VC++ 2008.</p>
<p>//deleted (gelöst)</p>
<p>Compiler o.k.<br />
Linker-Meldung: 2001 und 1120<br />
BigIntegerUtils.obj : error LNK2001: Nicht aufgelöstes externes Symbol &quot;&quot;public: __thiscall BigInteger::BigInteger(class BigUnsigned const &amp;,enum BigInteger::Sign)&quot; (??0BigInteger@@QAE@ABVBigUnsigned@@W4Sign@0@@Z)&quot;.<br />
fatal error LNK1120: 1 nicht aufgelöste externe Verweise.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1544888</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1544888</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Thu, 10 Jul 2008 15:06:04 GMT</pubDate></item><item><title><![CDATA[Reply to BigInteger on Thu, 10 Jul 2008 12:09:40 GMT]]></title><description><![CDATA[<p>1. musst vll noch ne lib dazulinken?!</p>
<p>2. wahrscheinlich hat BigUnsigned den operator &lt;&lt; nicht überladen...</p>
<p>bb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1544983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1544983</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Thu, 10 Jul 2008 12:09:40 GMT</pubDate></item><item><title><![CDATA[Reply to BigInteger on Thu, 10 Jul 2008 13:34:14 GMT]]></title><description><![CDATA[<p><a href="http://mattmccutchen.net/bigint/index.html" rel="nofollow">http://mattmccutchen.net/bigint/index.html</a></p>
<p>ad 1) war keine lib dabei</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1545058</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1545058</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Thu, 10 Jul 2008 13:34:14 GMT</pubDate></item><item><title><![CDATA[Reply to BigInteger on Thu, 10 Jul 2008 13:39:23 GMT]]></title><description><![CDATA[<p>Erhard Henkes schrieb:</p>
<blockquote>
<p><a href="http://mattmccutchen.net/bigint/index.html" rel="nofollow">http://mattmccutchen.net/bigint/index.html</a></p>
<p>ad 1) war keine lib dabei</p>
</blockquote>
<p>Aber .cc-Dateien, die laut README entweder vom Makefile in eine lib gebunden oder von Dir in das Projekt eingefügt werden müssen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1545064</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1545064</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Thu, 10 Jul 2008 13:39:23 GMT</pubDate></item><item><title><![CDATA[Reply to BigInteger on Thu, 10 Jul 2008 14:45:50 GMT]]></title><description><![CDATA[<p>Die ganzen cc-Dateien habe ich ins Projekt eingebunden. Vielleicht habe ich eine übersehen, muss mal nachschauen. Hatte <a href="http://BigInteger.cc" rel="nofollow">BigInteger.cc</a> übersehen. Thx.</p>
<p>Jetzt klappt es gut, möchte doch in unerforschtem Gebiet analysieren. <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>
<pre><code class="language-cpp">// Berechnung der &quot;3n+1&quot;-Folge (Collatz-Folge)
#include &lt;iostream&gt;
#include &lt;limits&gt;
#include &lt;string&gt;
#include &quot;BigIntegerLibrary.h&quot;

using namespace std;

void wait()
{
  std::cin.clear();
  std::cin.ignore(std::numeric_limits&lt;std::streamsize&gt;::max(),'\n');
  std::cin.get();
}

int main()
{
    /*********************************************************** Eingabebereich ****************************/
  BigUnsigned element_limit(1000000) ;      // Maximum H(n)
  BigUnsigned element_print_limit(4100) ;    // Ausgabe nur, wenn H(n) &gt; element_print_limit

  string s(&quot;10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000&quot;);             // Beginn der Berechnung bei start
  BigUnsigned start = easyStringToBI(s);

  s = &quot;10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000&quot;;                    // Ende der Berechnung bei end
  BigUnsigned end = easyStringToBI(s);  
  /*********************************************************** Eingabebereich ****************************/

  for( BigUnsigned j = start; j &lt; end; j++ )
  {
       BigUnsigned zahl = j ;
       BigUnsigned    i = 1 ;
       while( ( zahl != BigUnsigned(1) ) &amp;&amp; ( i &lt;= element_limit ) )
       {
            //cout &lt;&lt; zahl &lt;&lt; '\t';
            BigUnsigned rest = zahl % BigUnsigned(2);
            if( rest != BigUnsigned(1) )
                zahl /= BigUnsigned(2) ;
            else
                zahl = BigUnsigned(3) * zahl + BigUnsigned(1) ;
            i++;
       }

       if( zahl == BigUnsigned(1) )
       {
            if( i &gt; element_print_limit )
            {
                cout &lt;&lt; &quot;Startzahl: &quot; &lt;&lt; j;
                cout &lt;&lt; &quot;\tAnzahl: &quot;  &lt;&lt; i &lt;&lt; endl;
            }
       }
       else
       {
           cout &lt;&lt; &quot;Startzahl: &quot; &lt;&lt; j;  
           cout &lt;&lt; &quot;kein Resultat (Anzahl-Limit erhoehen)&quot; &lt;&lt; endl;
       }

       if( i &gt; element_limit ) cerr &lt;&lt; &quot;Anzahl zu hoch&quot; &lt;&lt; endl;
  }

  wait();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1545115</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1545115</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Thu, 10 Jul 2008 14:45:50 GMT</pubDate></item><item><title><![CDATA[Reply to BigInteger on Thu, 10 Jul 2008 14:47:38 GMT]]></title><description><![CDATA[<p>Wer es überprüfen möchte:<br />
<a href="http://matheroboter.de/collatz.php?berechnen=1&amp;cat=6&amp;zahl=10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001398" rel="nofollow">http://matheroboter.de/collatz.php?berechnen=1&amp;cat=6&amp;zahl=10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001398</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1545149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1545149</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Thu, 10 Jul 2008 14:47:38 GMT</pubDate></item></channel></rss>