Skip to content

grim-firefly/G-BigInt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

G_BigInt

Documentation :

Here we will describe how to use the G_BigInt in our code.
Open this code in your editor and do what you want to do in main function

 

Declaration :

declare BigInt variable like other's variable . for example, G_BigInt x,y,z;
there is two way to initialize G_BigInt; One is using constructor . for example: G_BigInt x("23243");
or using string . for example:
string str="3435453543";
G_BigInt x=str;

but we can't initialize like G_BigInt x="2324"; or G_BigInt x=23434235435345454 ;

Input and Output:

Input can be taken using cin >>variable_name ;
and print the output using cout << variable_name;

Arithmetic Operators :

+ 	addition 
- 	subtraction 
* 	multiplication
/ 	division
% 	remainder after division
 usage is as like as we do in integer but here both should be G_BigInt 

Relational Operator :

 < , <= , > , >= , == , != 
 usage is as like as we do in integer but here both should be G_BigInt 

increment and Decrement :

 usage is as like as we do in integer. for example : x++; ++x; x--;--x; 

Assignment Operator :

 we can do : x+=y; x-=y; x*=y; x/=y;x%=y 
 usage is as like as we do in integer but here both should be G_BigInt 

sign change :

we change sign as we do in integer : x=-x; here x value will be -x.
we need to use - before the variable

--Thank You

Grim Firefly 
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy