Autor Beitrag
$veno
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 42



BeitragVerfasst: Do 20.10.05 13:07 
Hi.

Habe in nem Quellcode folgende globales Variable gesehen:

var wert: integer = -1

Was bewirkt dort das "= -1" ?

Danke und Gruss Sven:)
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 20.10.05 13:11 
Die Variable wert wird mit -1 initialisiert.
$veno Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 42



BeitragVerfasst: Do 20.10.05 13:18 
user profile iconLuckie hat folgendes geschrieben:
Die Variable wert wird mit -1 initialisiert.


Heist dass, wenn man später die Variable dann ändert zB wert := 0 , dann nimmt wert den wert 0 an und das "= -1" hat keinerlei Bedeutung mehr?
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Do 20.10.05 13:27 
Genau, wenn du die aber nicht änderst sondern abfragst kommt -1.
$veno Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 42



BeitragVerfasst: Do 20.10.05 13:39 
ahh, ok, danke:)