Skip to content

reesmichael1/BigInt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BigInt

A simple BigInt library for C++. Note that, at least for now, the emphasis is on ease of use, not speed or performance.

Usage

#include <iostream>

#include "BigInt.h"

int main()
{
    BigInt big1("10000000000"); // Values can be arbitrarily large
    BigInt big2("30000000000");

    BigInt big3 = big1 + big2;

    std::cout << big3 << std::endl;
    std::cout << 1234 + big1 * 18 * big2 * 2 << std::endl;

    return 0;
}

Compiling and running this example (note that C++11 is required) displays

40000000000
10800000000000000001234

About

A simple BigInt library for C++. Focus is on ease of use, not speed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages