|
-
January 23rd, 2010, 04:22 PM
#3
Re: What am i doing wrong??
 Originally Posted by VladimirF
hmm… What kind of problems?
If I had to guess, I’d say that you have ONE Field object (ball), but you index it as if it was an array of 3 objects. Did it crush?
this part gives me an error ? it doesn't work like pointer array does it? if i want to change from x, then to y, and then z??
Code:
for(int i = 0; i<3; i++)
{
*(pBall+i) = randgen(&ball)
}
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
|