Teledyne-lecroy SAS_SATA Protocol Suite Verification Script Engine Instrukcja Użytkownika Strona 96

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 97
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 95
96
Appendix E Limitation of For and While Loops
To prevent infinite loops in improperly written script code there is a maximum limitation of 40,000 iterations in the
case of “For” and “While” loops.
Use the following nested loop get around this limitation:
for( i = 0; i <= 40000; i++ )
{
for( j = 0; j <= 40000; j++ )
{
k = i * 40000 + j; # k will iterate from 0 to 1600040000 thus overriding 40000
limitation
... # Do something with k
}
Przeglądanie stron 95
1 2 ... 91 92 93 94 95 96 97

Komentarze do niniejszej Instrukcji

Brak uwag