I am trying to pick my chain in the format {1,2,3,4,etc}. You can find the header file below which will have the layout of the nodes. I am just confused on how I should go about
It's hard to get your question. If you want to print the array to screen you should consider writing a display()
like:
#include
#include
void Set::display() const {
ostream_iterator out_it (cout," ");
copy(Pool,Pool+Num,out_it);
cout << endl;
}
or if you want to write to a ostream&
(as it is pointed out in the answer by @alestanis)
#include
#include
void Set::display(ostream &out) const {
ostream_iterator out_it (out," ");
copy(Pool,Pool+Num,out_it);
out << endl;
}