big int
This commit is contained in:
12
src/IO.cpp
12
src/IO.cpp
@@ -31,6 +31,18 @@ std::istream& operator>>(std::istream& stream, Matrix& mat) {
|
||||
return stream;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& stream, const BigInt& nbre) {
|
||||
stream << nbre.ToString();
|
||||
return stream;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& stream, BigInt& nbre) {
|
||||
long value;
|
||||
stream >> value;
|
||||
nbre = BigInt(value);
|
||||
return stream;
|
||||
}
|
||||
|
||||
Matrix LoadMatrix(const std::string& fileName) {
|
||||
std::ifstream in {fileName};
|
||||
if (!in) {
|
||||
|
||||
Reference in New Issue
Block a user