The
Vec
writeTo(ostream& out)
method should:
Insert each value in
myArray
into
out
, separated by space, tab, or newline characters, as you prefer.