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

From: Christian Holm Christensen <cholm@nbi.dk>
Date: Thu Oct 07 2004 - 12:57:28 EDT
Hi Erik, 


On Thu, 2004-10-07 at 09:38 -0500, 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?

Nope.

Yours,

-- 
 ___  |  Christian Holm Christensen 
  |_| |  -------------------------------------------------------------
    | |  Address: Sankt Hansgade 23, 1. th.  Phone:  (+45) 35 35 96 91
     _|           DK-2200 Copenhagen N       Cell:   (+45) 24 61 85 91
    _|            Denmark                    Office: (+45) 353  25 404
 ____|   Email:   cholm@nbi.dk               Web:    www.nbi.dk/~cholm
 | |


_______________________________________________
Brahms-dev-l mailing list
Brahms-dev-l@lists.bnl.gov
http://lists.bnl.gov/mailman/listinfo/brahms-dev-l
Received on Thu Oct 7 12:57:46 2004

This archive was generated by hypermail 2.1.8 : Thu Oct 07 2004 - 12:58:04 EDT