D Dirk Reske Oct 18, 2003 #1 hello, how can I express this C++ statement in C# const DETAILS = 2; if (support & DETAILS) { ..... }
hello, how can I express this C++ statement in C# const DETAILS = 2; if (support & DETAILS) { ..... }
M Mountain Bikn' Guy Oct 19, 2003 #2 It's almost the same: const int DETAIL = 2; const int CHECK = 0; //or 1 or whatever you need if ((support & DETAIL) == CHECK) { .... }
It's almost the same: const int DETAIL = 2; const int CHECK = 0; //or 1 or whatever you need if ((support & DETAIL) == CHECK) { .... }
L Lloyd Dupont Oct 19, 2003 #3 Mountain Bikn' Guy was nearly right, but let me correct him: It's almost the same: const int DETAIL = 2; const int CHECK = 0; //or 1 or whatever you need (Not needed) if ((support & DETAIL) == DETAIL ) { .... } there is also: if ((support & DETAIL) != 0) { .... }
Mountain Bikn' Guy was nearly right, but let me correct him: It's almost the same: const int DETAIL = 2; const int CHECK = 0; //or 1 or whatever you need (Not needed) if ((support & DETAIL) == DETAIL ) { .... } there is also: if ((support & DETAIL) != 0) { .... }
M Mountain Bikn' Guy Oct 19, 2003 #4 I guess it's been too long since I looked at C++ Mountain Bikn' Guy was nearly right, but let me correct him: It's almost the same: const int DETAIL = 2; const int CHECK = 0; //or 1 or whatever you need (Not needed) if ((support & DETAIL) == DETAIL ) { .... } there is also: if ((support & DETAIL) != 0) { .... }
I guess it's been too long since I looked at C++ Mountain Bikn' Guy was nearly right, but let me correct him: It's almost the same: const int DETAIL = 2; const int CHECK = 0; //or 1 or whatever you need (Not needed) if ((support & DETAIL) == DETAIL ) { .... } there is also: if ((support & DETAIL) != 0) { .... }