|
-
Oct 1st, 2002, 03:48 PM
#14
Fanatic Member
Originally posted by Zaei
...
p* stuff = new tri[10];
stuff[0].a.x = 0; // cant do this, a doesnt exist
[/code]
typecast it to tri! ((tri *) stuff[0]).a.x works. But when you are dealing with having a base class thats the same as the child class, then it really starts looking weird.
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
|