aboutsummaryrefslogtreecommitdiff
path: root/week08/Exercise4.cpp
diff options
context:
space:
mode:
authorKamen Mladenov <kamen@syndamia.com>2024-05-09 14:13:41 +0300
committerGitHub <noreply@github.com>2024-05-09 14:13:41 +0300
commit437e306dc9b79905105fb2e8af6dd1eae1b908ae (patch)
treed47bd59da88e8012f1a5085b2b1ed146ee51bed9 /week08/Exercise4.cpp
parent9e2b884538f58e1160b255f421fd649dac0cc080 (diff)
downloadoop-2023-solutions-437e306dc9b79905105fb2e8af6dd1eae1b908ae.tar
oop-2023-solutions-437e306dc9b79905105fb2e8af6dd1eae1b908ae.tar.gz
oop-2023-solutions-437e306dc9b79905105fb2e8af6dd1eae1b908ae.zip
[w8] Fixed missing output of length
Diffstat (limited to 'week08/Exercise4.cpp')
-rw-r--r--week08/Exercise4.cpp1
1 files changed, 1 insertions, 0 deletions
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] << " ";
}