problemscpp
A collection of my answers to algorithm problems in c++.
|
高精度整数 更多...
#include <templates.h>
Public 成员函数 | |
BigInt () | |
BigInt (const BigInt &bi) | |
BigInt (const char *str) | |
BigInt (const string &str) | |
BigInt (int n) | |
BigInt (long long n) | |
BigInt (long n) | |
BigInt (short n) | |
BigInt (unsigned int n) | |
BigInt (unsigned long long n) | |
BigInt (unsigned long n) | |
BigInt (unsigned short n) | |
bool | operator!= (const BigInt &bi) const |
BigInt | operator% (const BigInt &bi) const |
BigInt & | operator%= (const BigInt &bi) |
BigInt | operator* (const BigInt &bi) const |
BigInt & | operator*= (const BigInt &bi) |
BigInt | operator+ (const BigInt &bi) const |
BigInt & | operator++ () |
BigInt | operator++ (int) |
BigInt & | operator+= (const BigInt &bi) |
BigInt | operator- () const |
BigInt | operator- (const BigInt &bi) const |
BigInt & | operator-- () |
BigInt | operator-- (int) |
BigInt & | operator-= (const BigInt &bi) |
BigInt | operator/ (const BigInt &bi) const |
BigInt & | operator/= (const BigInt &bi) |
bool | operator< (const BigInt &bi) const |
bool | operator<= (const BigInt &bi) const |
bool | operator== (const BigInt &bi) const |
bool | operator> (const BigInt &bi) const |
bool | operator>= (const BigInt &bi) const |
Private 成员函数 | |
BigInt (const vector< unsigned short > &vec, bool positive) | |
unsigned long | get_size () const |
vector< unsigned short > | operator* (unsigned short n) const |
unsigned short | operator[] (unsigned long) const |
Private 属性 | |
bool | positive = true |
vector< unsigned short > | vec = {} |
友元 | |
ostream & | operator<< (ostream &os, const BigInt &bi) |
istream & | operator>> (istream &is, const BigInt &) |
高精度整数
在文件 templates.h 第 23 行定义.
|
private |
在文件 templates.cpp 第 31 行定义.
被这些函数引用 BigInt(), BigInt(), operator!=(), operator%(), operator%=(), operator*(), operator*=(), operator+(), operator++(), operator++(), operator+=(), operator-(), operator-(), operator--(), operator--(), operator-=(), operator/(), operator/=(), operator<(), operator<<, operator<=(), operator==(), operator>(), operator>=() , 以及 operator>>.
BigInt::BigInt | ( | short | n | ) |
BigInt::BigInt | ( | int | n | ) |
BigInt::BigInt | ( | long | n | ) |
BigInt::BigInt | ( | long long | n | ) |
BigInt::BigInt | ( | unsigned short | n | ) |
在文件 templates.cpp 第 100 行定义.
引用了 vec.
BigInt::BigInt | ( | unsigned int | n | ) |
在文件 templates.cpp 第 108 行定义.
引用了 vec.
BigInt::BigInt | ( | unsigned long | n | ) |
在文件 templates.cpp 第 116 行定义.
引用了 vec.
BigInt::BigInt | ( | unsigned long long | n | ) |
引用了 BigInt().
BigInt::BigInt | ( | const string & | str | ) |
BigInt::BigInt | ( | const char * | str | ) |
BigInt::BigInt | ( | const BigInt & | bi | ) |
在文件 templates.cpp 第 154 行定义.
BigInt::BigInt | ( | ) |
在文件 templates.cpp 第 384 行定义.
被这些函数引用 operator*(), operator+(), operator++(), operator-(), operator-() , 以及 operator--().
|
nodiscardprivate |
在文件 templates.cpp 第 27 行定义.
引用了 vec.
被这些函数引用 operator+(), operator-(), operator<() , 以及 operator>().
bool BigInt::operator!= | ( | const BigInt & | bi | ) | const |
在文件 templates.cpp 第 235 行定义.
|
private |
在文件 templates.cpp 第 219 行定义.
引用了 vec.
在文件 templates.cpp 第 169 行定义.
引用了 BigInt(), BigInt(), get_size() , 以及 positive.
BigInt & BigInt::operator++ | ( | ) |
BigInt BigInt::operator++ | ( | int | ) |
在文件 templates.cpp 第 373 行定义.
BigInt BigInt::operator- | ( | ) | const |
在文件 templates.cpp 第 191 行定义.
引用了 BigInt(), BigInt(), get_size() , 以及 positive.
BigInt & BigInt::operator-- | ( | ) |
BigInt BigInt::operator-- | ( | int | ) |
在文件 templates.cpp 第 379 行定义.
bool BigInt::operator< | ( | const BigInt & | bi | ) | const |
在文件 templates.cpp 第 293 行定义.
引用了 BigInt(), get_size() , 以及 positive.
bool BigInt::operator<= | ( | const BigInt & | bi | ) | const |
bool BigInt::operator== | ( | const BigInt & | bi | ) | const |
bool BigInt::operator> | ( | const BigInt & | bi | ) | const |
在文件 templates.cpp 第 268 行定义.
引用了 BigInt(), get_size() , 以及 positive.
bool BigInt::operator>= | ( | const BigInt & | bi | ) | const |
|
private |
|
friend |
|
friend |
|
private |
在文件 templates.h 第 25 行定义.
被这些函数引用 BigInt(), BigInt(), BigInt(), BigInt(), BigInt(), BigInt(), BigInt(), BigInt(), operator!=(), operator*(), operator+(), operator-(), operator-(), operator<(), operator<<, operator==() , 以及 operator>().
|
private |
在文件 templates.h 第 26 行定义.
被这些函数引用 BigInt(), BigInt(), BigInt(), BigInt(), BigInt(), BigInt(), BigInt(), BigInt(), BigInt(), BigInt(), BigInt(), get_size(), operator!=(), operator*(), operator*(), operator-(), operator<<, operator==() , 以及 operator[]().