Hallo Oku.
for(x=0;x<5;x++){
[...]
}Nein, ganz gewiss nicht, da dein Array „wert“ lediglich vier Elemente hat, du aber ganze sechs Elemente (0 bis 5) durchläufst.
Stimmt nicht ganz. Da der Vergleichsoperator "echt kleiner" ("<") verwendet wird, werden nur die Elemente 0 bis 4 (5 ist ja nicht "echt" kleiner als 5) durchlaufen.
Ja, stimmt. Da hatte ich nicht genau hingeschaut.
Einen schönen Freitag noch.
Gruß, Ashura
--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]