Re: [Dev-C++] What's the difference?
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ho...> - 2003-03-04 16:08:03
|
-------Original Message-------=0D =0D From: OROSZI Bal=E1zs=0D Date: =D4=F1=DF=F4=E7, 4 =CC=DC=F1=F4=E9=EF=F2 2003 5:34:24 =EC=EC=0D To: dev...@li...=0D Subject: Re: [Dev-C++] What's the difference?=0D =0D Ioannis Vranos wrote:=0D > =3D=3D> ? In fact allocating/releasing space on the free store is more = =0D > time-expensive than using local space in the stack.=0D =0D It is, but using the stack is only advisable for temporary structures.=0D =0D =0D =3D=3D> Well it depends. You can use the stack to callers and pass the st= ack entities to called functions.=0D =0D =0D =0D =0D =0D =0D >> =0D > =3D=3D> Or even better i would provide it as a class with access functi= ons.=0D =0D Well yes, I see now. I don't know C++, so I looked up in a book what you = =0D wrote, and it seems you use references. Isn't that the same as using =0D pointers?=0D Anyway, in C, pointers are the only way.=0D =0D =0D Yes. I did not know what language was all about and i assumed C++.=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |