From 437e306dc9b79905105fb2e8af6dd1eae1b908ae Mon Sep 17 00:00:00 2001 From: Kamen Mladenov Date: Thu, 9 May 2024 14:13:41 +0300 Subject: [w8] Fixed missing output of length --- week08/Exercise4.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/week08/Exercise4.cpp b/week08/Exercise4.cpp index 28b3e2d..cad7e80 100644 --- a/week08/Exercise4.cpp +++ b/week08/Exercise4.cpp @@ -122,6 +122,7 @@ bool operator!=(const FloatArray& left, const FloatArray& right) { } std::ostream& operator<<(std::ostream& ostr, const FloatArray& right) { + ostr << right.lastUnused << " "; for (int i = 0; i < right.lastUnused; i++) { ostr << right.numbers[i] << " "; } -- cgit v1.2.3