🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #1410

Re: Funcion Recursiva...

#1410
From: Andres E. Hernando
Date: Fri, 11 Aug 2006 17:43
24 lines
1767 bytes
In Thu, 10 Aug 2006 21:39:00 -0400, .:GendiodelLag:. wrote: 
> Hola, necesito hacer una funci�n recursiva para leer una estructura de
> directorios que est� contenida dentro de una BD SQL, en VB.net y la verdad
> se me ha ido muy en collera el asunto, alguien ha hecho similar que me
> pudiera orientar un poco...

	Un ejemplo de como mantienes la estructura? lo tipico
seria llamar a la funcion sobre cada elemento en el arbol,
si este es un archivo (hoja), hacer algo, si es un directorio (sub
arbol), llamar a la funcion sobre el directorio... Tal y como se 
hace todo con arboles.

	Y recuerda las dos frases claves de la recursion:

	"To understand recursion, you must first understand recursion"
	"Iteration is human, recursion is divine" 

	Saludos,
	AHG.

-- 
Wanda the fish says:
Republicans consume three-fourths of the rutabaga produced in this
country.  The remainder is thrown out.
Technical Details
Message-ID: <4k3ttjFagboeU3@individual.net>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <ebgn3l$jej$1@news.nivel5.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,2ae8206468964c7d
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: "Andres E. Hernando" <NOherSPnandoAM@fas.harvard.edu>
Newsgroups: chile.comp.programacion
Subject: Re: Funcion Recursiva...
Date: 11 Aug 2006 17:43:16 GMT
Organization: AHG/PAP Cambridge, MA
Lines: 24
Message-ID: <4k3ttjFagboeU3@individual.net>
References: <ebgn3l$jej$1@news.nivel5.cl>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: individual.net B4q0WmCwxlTo6WEFv8Au5w8pA1tr/5r6PfiYM8rTtnwQPd6ooh
X-Orig-Path: not-for-mail
X-Authenticated-User: ahg/pap
User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (Linux/2.6.15-26-386 (i686))