Deleting pointers froms vector?


Posted on 16th Feb 2014 07:03 pm by admin

Hi. I have a vector filled with pointers and I want to delete the pointers. I could do a loop and do delete on all indexes, but my question is that if I just clear the vector. Are the pointers deleted, that is can the memory block that the pointer was pointing to be overwritten?
No comments posted yet

Your Answer:

Login to answer
281 Like 19 Dislike
Previous forums Next forums
Other forums

socket communication between c++/java and sending image
hi,

i have a class in c++ called win32_sockserver which creates socket to java. i am trying

Code working in IE but not FireFox
I created a dynamic navigation list for my website based off of a table in my database. The code is

Website Direction...
I recently used this code to try and make it so the page loads as http://www.domain.com/ when you ty

Create multiple (n) arrays
Hi there,

I have the following need:

I have 2 arrays (coming from a databases)

login box shows up again after logging in 2nd login works
Hello,

I am having trouble on my site Lockerz.rack111.com where when you login the login box

Get Total From While Loop
I'm trying to get the total for each product and add them for a Grand Total to list outside the loop

Not loading image
When this function gets loaded it doesn't load the image just trying to figure out why.

Code:

Is there a way to override built in php functions without APD?
I am trying to use the
rename_function()
override_function()
options that are built into

Procedural to OOP
ohn Kleijn said that to avoid writing "crappy code", we should learn OOP and common OO pri

mysql_query returning boolean instead of mysql ressource
Hi,

I seem to have a weird issue with the php command mysql_query. I pass 2 arguments the que

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash