- 1
- 2
- 3
- 4
- 5
// Loop through the list of passwords and try them until one works
for (; passwordcounter < passwords.Length; passwordcounter++)
{
//shit goes here
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
+110
// Loop through the list of passwords and try them until one works
for (; passwordcounter < passwords.Length; passwordcounter++)
{
//shit goes here
}
...another one.
нравиться-нравиться!!!
условием выхода из цикла есть "passwordcounter < passwords.Length". просто для каунтера используеться уже существующая переменная.