I think that you are using pointers and you are printing the pointer and not its content.
For example, you may be doing this:
int* a = new int(5);
cout << a; //This prints 0xsomething...
cout << *a; //This prints 5
delete a;
Maybe you should do:
cout << (*(*array[i])[j]);
Or just:
cout << **array[i][j];
Or just a * on front of what you want to print is necessary.
That's the beauty and the shame of C++: the syntax!