Git Product home page Git Product logo

c-plus-plus--bignum's Introduction

C++Bignum,一个高精度模板

正在完善中。

1. 使用方法

将项目内的Bignum文件夹放置于代码同目录下,在代码头部加上

#include "Bignum/bignum.h"

就可以使用了。

1.1 变量定义

类型名是bignum

你可以像下面那样定义它:

bignum n;

非常简单。

1.2 输入与输出

此模板重载了输入输出流的运算符,直接使用cin cout输入输出即可。

像这样

bignum n;
cin>>n;
cout<<n<<endl;

1.3 变量赋值

直接使用赋值运算符=赋值即可。 像这样:

bignum a,b,t;
cin>>a>>b;
t=a;
a=b;
b=t;
cout<<a<<b;

1.4 取正负值

直接像int一样使用+-运算符即可。

像这样

bignum a;
cin>>a;
cout<<-a<<endl;

1.5 其它功能

开发者正在努力开发中,敬请期待。

2 想要贡献?

直接Fork即可。

c-plus-plus--bignum's People

Contributors

e3c8f1a924 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.