473,386 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

I forget it - HELP

I forget to do this shorter way:
A != B | A != C | A !=D |.....etc
As far as I remember it is something like
A != {B|C|D} ....

Please help
Nov 15 '05 #1
6 1084
I forgot it too.

(in case you are serious about this: this doesn't look like C# or any other
popular language.
It has more of a functional language.)

Bye
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I forget to do this shorter way:
A != B | A != C | A !=D |.....etc
As far as I remember it is something like
A != {B|C|D} ....

Please help

Nov 15 '05 #2
I remember for 100% that it was in C++, I'm prity sure that there is in C#
too...
"Bram" <bv****@nospam.skynet.be> wrote in message
news:40*********************@news.skynet.be...
I forgot it too.

(in case you are serious about this: this doesn't look like C# or any other popular language.
It has more of a functional language.)

Bye
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I forget to do this shorter way:
A != B | A != C | A !=D |.....etc
As far as I remember it is something like
A != {B|C|D} ....

Please help


Nov 15 '05 #3
if you remember it for a 100%, you should be able to remember the syntax as
well.
btw, what types are A, B, C ... supposed to be ?

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:ee****************@TK2MSFTNGP09.phx.gbl...
I remember for 100% that it was in C++, I'm prity sure that there is in C#
too...
"Bram" <bv****@nospam.skynet.be> wrote in message
news:40*********************@news.skynet.be...
I forgot it too.

(in case you are serious about this: this doesn't look like C# or any

other
popular language.
It has more of a functional language.)

Bye
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I forget to do this shorter way:
A != B | A != C | A !=D |.....etc
As far as I remember it is something like
A != {B|C|D} ....

Please help



Nov 15 '05 #4
I remember that I did it, but I do not remember how... :)
any type (the same[string,int, etc.])

"Bram" <bv****@nospam.skynet.be> wrote in message
news:40*********************@news.skynet.be...
if you remember it for a 100%, you should be able to remember the syntax as well.
btw, what types are A, B, C ... supposed to be ?

"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:ee****************@TK2MSFTNGP09.phx.gbl...
I remember for 100% that it was in C++, I'm prity sure that there is in C# too...
"Bram" <bv****@nospam.skynet.be> wrote in message
news:40*********************@news.skynet.be...
I forgot it too.

(in case you are serious about this: this doesn't look like C# or any

other
popular language.
It has more of a functional language.)

Bye
"Tamir Khason" <ta**********@tcon-NOSPAM.co.il> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> I forget to do this shorter way:
> A != B | A != C | A !=D |.....etc
> As far as I remember it is something like
> A != {B|C|D} ....
>
> Please help
>
>



Nov 15 '05 #5

Hi Tamir,

Thank you for posting in the community! My name is Jeffrey, and I will be
assisting you on this issue.

=======================================
Actually, I still can not provide your answer for your shorter way. But I
want to remind you something important:

"| Operator" is a C# binary operator that is predefined for the integral
types and bool. So if the B, C, D are other types, they can not be applied
with "| Operator".
Also, the "| Operator" applies different effect with int and bool types.
For integral types, | computes the bitwise OR of its operands. For bool
operands, | computes the logical OR of its operands.

For more information, please refer to:
http://msdn.microsoft.com/library/de...us/csref/html/
vclrfBarOperator.asp

=======================================

Thank you for your patience and cooperation. If you have any questions or
concerns, please feel free to post it in the group. I am standing by to be
of assistance.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Nov 15 '05 #6
since you want to find out inequality, wouldn't it save some computation
if you do the orginial way:
A != B || A != C || A != D || ......
?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: bazley | last post by:
I've been tearing my hair out over this: #ifndef MATRIX2_H #define MATRIX2_H #include <QVector> template<class T> class Matrix2 { public:
19
by: lihua | last post by:
Hi, Group! I got one question here: We all know that fclose() must be called after file operations to avoid unexpected errors.But there are really cases when you forget to do that!Just like...
5
by: meenasamy | last post by:
Hi all i have used a script that i downloaded and uses the fopen($url,'r'); function to access a url to retrieve data and i get this error Fatal error: fopen(): Unable to find the wrapper...
5
by: Stephen Barrett | last post by:
I have read many threads related to async fire and forget type calls, but none have addressed my particular problem. I have a webpage that instantiates a BL object and makes a method call. The...
1
by: Andrea | last post by:
Hi, i've installed OCS Inventory NG for inventory and it has installed Mysql ver: mysql Ver 14.12 Distrib 5.0.18, for Win32 now i have to make a dump for save database but don't forget the...
0
by: =?Utf-8?B?QW1qYWQ=?= | last post by:
I have one question about forget password control with asp.net 2.0 we are using here Groupwise . how can i send email using group wise instead of SMPT and how to change the setting for or i have to...
4
by: chaos | last post by:
Hi all , i occur a problem in my forget password page as the page appear as blank page . Can anyone help me find out wt went wrong with my code. <?php require_once('Connections/conn.php'); ?>...
10
by: ghjk | last post by:
I'm developing web site using php and my sql. In there i want to send a mail including new password to user, when he forget his password. How can i send mail using php? Could you please help me?
7
by: Ben Voigt [C++ MVP] | last post by:
As much as the CLR team assures us that it's ok to fire-and-forget Control.BeginInvoke, it seems it isn't. Maybe this is a bug. See for example: the comments in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.