delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/03/19:02:51

From: johan DOT winge AT iname DOT com (Johan Winge)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Unlimited size integers
Message-ID: <37a6d475.178890@newsb.telia.net>
References: <B0000096552 AT stargate DOT astr DOT lu DOT lv>
X-Newsreader: Forte Free Agent 1.11/32.235
Date: Tue, 03 Aug 1999 11:44:20 GMT
NNTP-Posting-Host: 62.20.229.146
X-Complaints-To: abuse AT telia DOT com
X-Trace: newsb.telia.net 933680660 62.20.229.146 (Tue, 03 Aug 1999 13:44:20 CEST)
NNTP-Posting-Date: Tue, 03 Aug 1999 13:44:20 CEST
Organization: Telia Internet
Lines: 30
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Fri, 30 Jul 1999 21:38:06 +0300, pavenis AT lanet DOT lv wrote:

>On 30 Jul 99, at 13:41, Marcus Rohrmoser wrote:
>
>> 
>> There's a possibility if using C++. See <somplex.h> for an example how
>> to create your own types beeing useable like builtins.
>> 
>> But 'unlimited' still won't be possible, for your computer's memory IS
>> limited.

Yes, of course. In fact integers up to 2^10000000 will do nicely.
(That is approx. 1 MB for each number, and I only need a couple of
them...)

>
>1) Install libg++ binaries
>
>2) After that 
>        #include <Integer.h>

Ok so far.

>        and class Integer provides functionality You want (of course    
>     for C++ only)

Uhm, this may sound stupid but could you show exactly how? How to
initialise the integers etc?

--Johan Winge

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019