|
Got it.Thanks !!
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
VuNic wrote: Got it.Thanks !!
Is the coding in C itself or you can use C++ Classes there, if yes the try Auto_ptr
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Thanks Alok!
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
The memory is deallocated automatically when program terminates
In case of java there is special garbage collecter for deallocation of the memory during run time
So its better that when you allocates memory inside the function then before returning allocated memory must deallocate.
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
A_Laxman wrote: The memory is deallocated automatically when program terminates
A_Laxman wrote: So its better that when you allocates memory inside the function then before returning allocated memory must deallocate.
alloca doesn't require that.
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
A_Laxman wrote: In case of java there is special garbage collecter for deallocation of the memory during run time
Sorry for Sounding Rude, this is not JAVA forum and C++ doesn't have Inbuild Garbage Collector!
A_Laxman wrote: So its better that when you allocates memory inside the function then before returning allocated memory must deallocate.
Sometime its necessaey to allocate the Memory inside Function and Deallocated at Calling side, its wholly on design!.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Yaa Alok,
Agreed ,even C# also provides Garbage Collector
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
A_Laxman wrote: even C# also provides Garbage Collecto
yeap, but C++ don't have one
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Due to that C++ developers have to take care of Memory mangement/Leaks
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
A_Laxman wrote: Due to that C++ developers have to take care of Memory mangement/Leaks
Yeap, but its month I have used new and delete, instead of that i use STL and wrapper classes as it increase Development speed and you don't need to worry about Memory leak due to same!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Cool,
its all depends on developer's Choice what he/she prefer
As well its regarding development where we have to use dynamic allocation for efficient programing and memory utilization
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
A_Laxman wrote: As well its regarding development where we have to use dynamic allocation for efficient programing and memory utilization
Isn't STL is effcient?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I have not used STL more , so don't know which one more efficient
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
A_Laxman wrote: I have not used STL more , so don't know which one more efficient
then Have a try , you will love it!, try cppreference.com for reference on STL classes!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Hi Alok,
Thanks ,from now I love STL as well
very good information provided by the site.
Thank a lot.
Knock out 'T' from CAN'T ,
You 'CAN' if you think you 'CAN'
|
|
|
|
|
VuNic,
Have you have simple common sense?
Just write something sensible relevant to the matter of your post in the subject line than just "???"
May be thats why you are just stuck with "C" )
ppatel
|
|
|
|
|
---Sorry for making it look like the SB ----
|
|
|
|
|
VuNic wrote: Take your as* of my thread now, ****** if you dont understand what a "?" means, go join your kid and learn what's a "?", the perfect a**h*le I've ever seen.
Control you Anger Vunic!... thats doesn't suits you! and rest,leave it to Tox, he will handle it
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
-- modified at 7:33 Tuesday 16th May, 2006
|
|
|
|
|
ThatsAlok wrote: Control you Anger Vunic!...
Glad I am not the one surprised by this thread ! Never thought Vunic could "post" like that.
ThatsAlok wrote: lets Tox to do the work
~RaGE();
|
|
|
|
|
Rage wrote: ThatsAlok wrote:lets Tox to do the work
Don't tell Tox about it, otherwise.....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I'm really sorry guys, I've never been so rude before. But this guys is .. just watch out his posts in the lounge or SB. You'll know about him.
<marquee scrollamount="1" scrolldelay="1" direction="up" height="10" step="1">--[V]--
[My Current Status]
|
|
|
|
|
ppatel567 wrote: I think you are from india only, your egoistic attitude shows it
Is every body in India is Egoistic?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
Nibu thomas wrote: ThatsAlok wrote:lets Tox to do the work
Don't you know about Tox?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
ThatsAlok wrote: Don't you know about Tox?
Is it little toxie? If so what has he got to do with this!!
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|