Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- #include <iostream.h>
- #include <sstream.h>
- #define len 4
- namespace intl
- {
- const int max_size = 1028;
- template <class D>
- D readln();
- template <class D>
- void writeln( D data );
- struct INTL
- {
- int osn;
- int digits[max_size];
- int size;
- bool negative;
- INTL();
- INTL( string number );
- INTL( long number );
- void setmemory( string number );
- int getlenght();
- void input();
- void output();
- void Shift( int pos, int digit );
- };
- string int2str( long number );
- long str2int( string number );
- INTL int2intl( long number );
- long intl2int( INTL ln );
- namespace operators
- {
- void operator << ( const ostream &, INTL &z );
- void operator >> ( const istream &, INTL &z );
- INTL operator + ( const INTL &a, const INTL &b );
- INTL operator - ( const INTL &a, const INTL &b );
- INTL operator * ( const INTL &a, const INTL &b );
- INTL operator / ( const INTL &a, const INTL &b );
- INTL operator % ( const INTL &a, const INTL &b );
- void operator ++ ( INTL &a );
- void operator += ( INTL &a, const INTL &b );
- void operator -- ( INTL &a );
- void operator -= ( INTL &a, const INTL &b );
- void operator *= ( INTL &a, const INTL &b );
- void operator /= ( INTL &a, const INTL &b );
- void operator %= ( INTL &a, const INTL &b );
- bool operator < (const INTL &a, const INTL &b);
- bool operator > (const INTL &a, const INTL &b);
- bool operator <= ( const INTL &a, const INTL &b );
- bool operator >= ( const INTL &a, const INTL &b );
- bool operator == ( const INTL &a, const INTL &b );
- }
- INTL pow( const INTL &a, const int &N );
- INTL sqrt( INTL rslt );
- INTL factorial( INTL n );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement