Website Summary Files Commits Branches @commit @diff @stats
path: root / OperatorOverloading / Vector
diff options
context:
space:
mode:
1 files changed, 2 insertions, 2 deletions
-rw-r--r--OperatorOverloading/Vector/Vector.cpp4
diff --git a/OperatorOverloading/Vector/Vector.cpp b/OperatorOverloading/Vector/Vector.cpp
index c0e8350..397cd46 100644
--- a/OperatorOverloading/Vector/Vector.cpp
+++ b/OperatorOverloading/Vector/Vector.cpp
@@ -111,7 +111,7 @@ int operator%(const Vector& lhs, const Vector& rhs)
result += lhs.GetAtIndex(i) * rhs.GetAtIndex(i);
return result;
}
-bool operator||(const Vector& lhs, const Vector& rhs) // a и b са перпендикулярни <-> a*K=b (K е константа).
+bool operator||(const Vector& lhs, const Vector& rhs)// a и b са перпендикулярни <-> a*K=b (K е константа).
{
double coeff = lhs.GetAtIndex(0) / rhs.GetAtIndex(0);
for (int i = 1; i < lhs.GetLen(); i++)
@@ -127,7 +127,7 @@ bool operator||(const Vector& lhs, const Vector& rhs) // a и b са перпендикулярн
}
bool operator|=(const Vector& lhs, const Vector& rhs)
{
- return lhs%rhs == 0; //скаларното произведение на два успоредни вектора е 0.
+ return lhs%rhs == 0; //скаларното произведение на два успоредни вектора е 0.
}
std::ostream& operator<<(std::ostream& os, const Vector& v)