I have a problem with one of my pointers. I tried to define a pointer ptr to a user-defined class intmodn (which is made of two integers) by:
intmodn *ptr;
inside a class nmatrix. The instant the computer declares an nmatrix object, I get a segmentation fault coming from this. I assume (although I could be wrong) that the problem is that the compiler does not know how to allocate memory for an intmodn object, in which case, how does one do tell it?
