Website Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit437e306dc9b79905105fb2e8af6dd1eae1b908ae (patch)
Author
 Kamen Mladenov <kamen@syndamia.com>
2024-05-09 14:13:41 +0300
Committer
 GitHub <noreply@github.com>
2024-05-09 14:13:41 +0300
Filesd47bd59da88e8012f1a5085b2b1ed146ee51bed9
oop-2023-solutions-437e306dc9b79905105fb2e8af6dd1eae1b908ae.tar
oop-2023-solutions-437e306dc9b79905105fb2e8af6dd1eae1b908ae.tar.gz
oop-2023-solutions-437e306dc9b79905105fb2e8af6dd1eae1b908ae.zip
Parent9e2b884538f58e1160b255f421fd649dac0cc080 (diff)
[w8] Fixed missing output of length
1 files changed, 1 insertions, 0 deletions
-rw-r--r--week08/Exercise4.cpp1
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] << " ";
}