what does this mean: variable =! variable
-
I know this probably is the worlds most simple and stupid question, yet I'm having a pretty hard time figuring out what it means. some simple code:
int some_variable;
some_variable =! some_variable;
What does =! mean!? And what is that kind of assigning called? Just so i'm able to look up more info about it...
-
I know this probably is the worlds most simple and stupid question, yet I'm having a pretty hard time figuring out what it means. some simple code:
int some_variable;
some_variable =! some_variable;
What does =! mean!? And what is that kind of assigning called? Just so i'm able to look up more info about it...
bool b = false; bool not_b_1 = !b; bool not_b_2 =! b; and now, not_b_1 == true and not_b_2 == true
-
bool b = false; bool not_b_1 = !b; bool not_b_2 =! b; and now, not_b_1 == true and not_b_2 == true
Thanks man :)
-
I know this probably is the worlds most simple and stupid question, yet I'm having a pretty hard time figuring out what it means. some simple code:
int some_variable;
some_variable =! some_variable;
What does =! mean!? And what is that kind of assigning called? Just so i'm able to look up more info about it...
Jan Sommer wrote:
What does =! mean!?
This might help. It assigns the "not" value of
some_variable
."Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
I know this probably is the worlds most simple and stupid question, yet I'm having a pretty hard time figuring out what it means. some simple code:
int some_variable;
some_variable =! some_variable;
What does =! mean!? And what is that kind of assigning called? Just so i'm able to look up more info about it...
It means the opposite.(NOT of) If it was 1, makes it 0 If it was 0, makes it 1 Simple is it *not* :rolleyes: ?
OK,. what country just started work for the day ? The ASP.NET forum is flooded with retarded questions. -Christian Graus Best wishes to Rexx[^]
modified on Saturday, June 14, 2008 4:27 AM
-
I know this probably is the worlds most simple and stupid question, yet I'm having a pretty hard time figuring out what it means. some simple code:
int some_variable;
some_variable =! some_variable;
What does =! mean!? And what is that kind of assigning called? Just so i'm able to look up more info about it...
2b|!2b = ? William Shakespeare Hamlet Seriously - I am not so sure this variable =! variable is a proper C syntax anyway. By itself it is a "logical NOT operator". In this example the compiler (VC6.0) sees it as variable = !variable assignment. (Space after = sign is “assumed”?) Not too clear since if you write variable != variable it is interpreted as variable not equal variable as used in if(variable != variable) test condition. A completely different operator! Again - by itself it does not make any sense in if statement. Would be nice to know if someone knows what the ANSI standard for C says. I have not found "=!" in MSDN by itself. Personally I would stay away from using it without space after the equal sign – it reads better. Vaclav
-
I know this probably is the worlds most simple and stupid question, yet I'm having a pretty hard time figuring out what it means. some simple code:
int some_variable;
some_variable =! some_variable;
What does =! mean!? And what is that kind of assigning called? Just so i'm able to look up more info about it...
=! is not an assignment operator
int some_variable; some_variable =! some_variable;
means assigning(! some_variable)
tosome_variable
;)