|
-
May 1st, 2009, 11:49 PM
#3
Re: How to assign an element from a vector to another?
4) Why are you using pointers and new ?????
I used new because when I encountered a bug, somebody suggested that I need to initialize the pointers. So, I thought I could use new to retrieve the memory location. As for why I use pointers to type DoubleArray, it is because I have to integrate my code to an existing program written by others. They often use DoubleArray *ptr in the code.
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
|