Oct 23, 2002 #1 McBugzz Programmer Sep 17, 2002 90 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 Jun 21, 2002 317 DK It means fullscreen is equal to NOT fullscreen. i.e. an assignment. /JOlesen Upvote 0 Downvote
Oct 23, 2002 #3 Pyramus Programmer Dec 19, 2001 237 GB Yes. It's less confusing if written like: fullscreen = !fullscreen; Upvote 0 Downvote
Oct 28, 2002 #4 Rhoon Programmer Mar 23, 2001 55 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