View Single Post
  #15  
Old 10-04-2004, 09:16 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

for future reference, when you are using '&&' you need to group then using parentheses.

Ex.
Code:
if(($race eq 'Dark elf') && ($class eq 'Enchanter'))
{
.
.
.
}
doing if($race eq 'Dark Elf') && ($class eq 'Enchanter') doesnt work, its not grouped with anything.
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote