my function is not working i want it to print out and i have to do it using only iterator and algorithm library and i also look at copy for algorithm and not sure what to use form the iterator.
1 2 3 4 5 6 7 8 9 10 11 12 13
void Write(std::ostream& os)
os << name << std::endl;
os << i << std::endl;//error here