- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
List<ArestDates> dates = new List<ArestDates>();
...
...
#region Sort by ArestDate
for (int i = 1; i < dates.Count; i++)
{
for (int j = i + 1; j <= dates.Count; j++)
{
if (dates[j - 1].ArestDate < dates[i - 1].ArestDate)
{
ArestDates ads = dates[j - 1];
dates[j - 1] = dates[i - 1];
dates[i - 1] = ads;
}
}
}
leonian123 02.08.2010 21:22 # −1
slish a shozes niabichnova chuvak...
David_M 03.08.2010 08:22 # 0
leonian123 03.08.2010 15:48 # 0
leonian123 03.08.2010 18:26 # −3
tak davai absuzim kod:
1. v mesta ArrayList vziat List<>
2. ispalzuyustsya Region-i, c pravilnim imenami
3. u peremennix iest pravilnie imena, ne schitaya 'ads' katori chereshchur lakalna :)
4. krasiva ispazuutsya figurnie skobki
a sichas skaji mne kak mojna programer vkode katorova vidna elementi pravilnovo pragramirovania, ne znac shto yesli kod ispalzuetsya mnoga raz yevo nada zasunuc v funkciyu. eta je dvaj didva ?
ti shota vryosh! :)
i kstatee: ispazlovac gatovie funkcii v mets tavo shto napisac svayo - ETA NE CHISTATA KODA !
3.14159265 04.08.2010 09:12 # +1
TarasB 02.08.2010 22:40 # 0
Lure Of Chaos 02.08.2010 23:04 # +3
absolut 03.08.2010 07:38 # +1
Lure Of Chaos 03.08.2010 13:07 # 0