|
From: Ioannis V. <no...@ho...> - 2003-02-14 20:12:30
|
=0D =0D -------Original Message-------=0D =0D From: Matthew Nuzum=0D Date: =D0=E1=F1=E1=F3=EA=E5=F5=DE, 14 =D6=E5=E2=F1=EF=F5=DC=F1=E9=EF=F2 2= 003 4:05:01 =EC=EC=0D To: 'Santiago'; 'dev-cpp-users-list'=0D Subject: RE: [Dev-C++] recursion=0D =0D Some problems can only easily be solved with recursion. I use it about 2= -3 times per year.=0D =0D =3D=3D> The "only" part is not true.=0D =0D =0D In fact, the last two times I used recursion was when working with hierarchies. One time=0D was reading in and processing files in a series of folders and subfolders= , the second time=0D was taking information from a database (for a shopping cart) and displayi= ng it in a =0D category/subcategory view.=0D =0D =3D=3D> It can be done as a loop too. I am sending attached a console pro= gram that erases all =0D the contents of the disk. It does it using loop. It asks the user for confirmation before it does=0D it. The program was written at the time that i was learning C, so it is n= ot written nicely.=0D I just kept it to remember the old days. :)=0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |