[prog] use of the new and delete operator...
sena emre
senaemre at yahoo.com
Thu Jul 12 11:04:03 UTC 2007
hello everyone,
In my C++ code, I have memory problems due to the use of new operator...I am trying to use delete to avoid this problem but I couldnot achieved...
I have a struct named solution
struct sol{
.
.
.
};
sol S;
S *sco = NULL;
sco = new sol[my.sco];
and I am defining a dynamic array of size my.sco...To avoid memry problems I am trying to use
delete [] sco;
but this does'nt work...what should I do?
thanks...
Sena Emre
---------------------------------
Got a little couch potato?
Check out fun summer activities for kids.
More information about the Programming
mailing list