[Brahms-dev-l] c++ question

From: Johnson, Erik B <ebj@ku.edu>
Date: Thu Oct 07 2004 - 10:38:52 EDT
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
Received on Thu Oct 7 10:39:18 2004

This archive was generated by hypermail 2.1.8 : Thu Oct 07 2004 - 10:39:34 EDT