Sto cercando di sviluppare un algoritmo in C# che possa prendere un elenco di array di URL e visualizzarli in un elenco numerato di contorni.C# contorni numerici
Come potete immaginare ho bisogno di aiuto. Qualcuno ha qualche suggerimento sulla logica da utilizzare per generare questo elenco?
Esempio di output:
1 - http://www.example.com/aboutus
1.2 - http://www.example.com/aboutus/page1
1.3 - http://www.example.com/aboutus/page2
1.3.1 - http://www.example.com/aboutus/page2/page3
1.3.1.1 - http://www.example.com/aboutus/page2/page3/page4
1.3.2 - http://www.example.com/aboutus/page5/page6
1.3.2.1 - http://www.example.com/aboutus/page5/page7/page9
1.3.2.2 - http://www.example.com/aboutus/page5/page8/page10
1.4 - http://www.example.com/aboutus/page10
1.4.1 - http://www.example.com/aboutus/page10/page11
1.4.2 - http://www.example.com/aboutus/page10/page12
1.1.5 - http://www.example.com/aboutus/page13
1.1.6 - http://www.example.com/aboutus/page14
1.1.6.1 - http://www.example.com/aboutus/page14/page15
1.1.6.2 - http://www.example.com/aboutus/page14/page16
1.1.6.3 - http://www.example.com/aboutus/page14/page17
... e così via
ciao, non c'è un problema tecnico in 1.3.2 e 1.3.2.1? Chiamerei il secondo 1.3.3.1 invece - è vero? – Carsten
Perché questo >> '1.1.5 - http: // www.example.com/aboutus/page13' ?. Perché non è '1.5'? – Nawaz
L'elenco è inizialmente ordinato nell'ordine in cui lo si desidera numerare? Perché 'http: // www.example.com/aboutus/aboutus' non 1.1? –