were the method printCell() is void and print each cell of catalog
My compile crashes crashes [Error] no match for 'operator<<' in 'outfile << (catalog + ((sizetype)(((long long unsigned int)i) * 16ull)))->Cell::printCell()'
Why you using a pointer and new for something like that? Makes the code more error prone. Also what is your printCell returning? Otherwise you may want to overload the operator << and just output each cell that way.
I m using a pointer and a new because i have to initialize an array with a big
size(200000).The printCell is a void method it just print the cell
This is in cell class...
So in otherwords you are trying to add nothing to the output stream. What I would do is give the printcell function a parameter of the ofstream (by reference) then replace cout with out or what ever name in your parameter:
1 2 3 4 5 6 7 8 9
void Cell::printCell( ofstream &out )
{
out << id_counter << '-' << id number;
}
//in your main
for( int i = 0; i < 100; ++i )
catalog[i].printCell();