|
-
November 23rd, 2017, 04:22 AM
#7
Re: Can I use the same variable to initialise two class objects?
 Originally Posted by 2kaud
Unless you need to store object pointers, why not just have a list of class Device?
If I use pointers I then don't have to worry about the object going out of scope somewhere and getting deleted. I know that until I call delete, the pointer stays put. I could be totally wrong on this though.
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
|