-
May 12th, 2010, 10:53 AM
#1
need help assigning one structure to another using pointers
Hi,
i have two pointer to structures named *currMB and *PrevMB and i want to assign PrevMB into currMB.
will the C++ code below work.
struct Macroblock *currMB;
struct Macroblock *PrevMB;
*currMB= & PrevMB;
and if i want to average these two structures and put the output in currMB.
then can i write
currMB = (currMB+PrevMB)/2;
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
|