|
-
December 21st, 2008, 02:32 PM
#1
[RESOLVED] Pointer problem
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?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|