Re: [Brahms-dev-l] c++ question

From: <aic@venus.nipne.ro>
Date: Fri Oct 08 2004 - 08:25:02 EDT
  Hi,
 
   I think that 
if(num1 == num2 && num1==num3 && num1==num4 && num1==num5) is enough. The 
num2 == num3 ... conditions doesn't matter. :) 
  

                    Ionut

On Thu, 7 Oct 2004, Johnson, Erik B wrote:

> Brahms,
>    I have a simple c++ question.  I just want to see if there is an easy way of doing this.  
>   I have 5 numbers that I want to check to see if they are equal.  Instead of 
> if ( num1 == num2 && num1 == num3 && num1 == num4 && num1 == num5 && num2 == num3 ...
>   Is there a better way of writing something like this?
> Erik
> 
> 
> _______________________________________________
> Brahms-dev-l mailing list
> Brahms-dev-l@lists.bnl.gov
> http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
> 


_______________________________________________
Brahms-dev-l mailing list
Brahms-dev-l@lists.bnl.gov
http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
Received on Fri Oct 8 05:23:40 2004

This archive was generated by hypermail 2.1.8 : Fri Oct 08 2004 - 05:24:01 EDT