Oct 23, 2002 #1 McBugzz Programmer Joined Sep 17, 2002 Messages 90 Location JP I saw some C++ code that looked like that: fullscreen =! fullscreen; What's that =! thing? What does this statement mean?
I saw some C++ code that looked like that: fullscreen =! fullscreen; What's that =! thing? What does this statement mean?
Oct 23, 2002 #2 JOLESEN Programmer Joined Jun 21, 2002 Messages 317 Location DK It means fullscreen is equal to NOT fullscreen. i.e. an assignment. /JOlesen Upvote 0 Downvote
Oct 23, 2002 #3 Pyramus Programmer Joined Dec 19, 2001 Messages 237 Location GB Yes. It's less confusing if written like: fullscreen = !fullscreen; Upvote 0 Downvote
Oct 28, 2002 #4 Rhoon Programmer Joined Mar 23, 2001 Messages 55 Location US != ... Not Equal To (Test condition) Ie: if ( a != b) {} =! ... Assignment to the not of the operand on the right. Ie: if ( a =! b) {} .. If a = !b is assigned without error then the if statement is executed. Rhoon Upvote 0 Downvote
!= ... Not Equal To (Test condition) Ie: if ( a != b) {} =! ... Assignment to the not of the operand on the right. Ie: if ( a =! b) {} .. If a = !b is assigned without error then the if statement is executed. Rhoon