This commit is contained in:
2024-05-11 19:44:32 +02:00
parent 0d071b1cf9
commit 2975006972
10 changed files with 201 additions and 32 deletions

View File

@@ -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) {