Moin
Wie wäre es mit
if (x==1) x=0;
else x=1;
oder noch kürzer;
x = (x==0)?1:0;
oder noch kürzer:
x = 1 - x;
Gruß
Avalon
Moin
Wie wäre es mit
if (x==1) x=0;
else x=1;
oder noch kürzer;
x = (x==0)?1:0;
oder noch kürzer:
x = 1 - x;
Gruß
Avalon