|
-
September 26th, 2018, 07:43 AM
#7
Re: Why am I printing more characters that i expect?
 Originally Posted by 2kaud
Yes - in this case. But why not get into the habit of always using new/delete - or even better unique_ptr/shared_ptr.
Well, if i told you that i just understood the meaning of smart pointers would you believe me I couldn't see why you need a pointer that will get free automatically when you reach out of scope but with this code now i got it.
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
|