Results 1 to 4 of 4

Thread: exponents

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2001
    Location
    Oz
    Posts
    13

    exponents

    when i try to use an exponent it says

    error C2296: '^' : bad left operand
    error C2297: '^' : bad right operand
    error C2064: term does not evaluate to a function


    does anyone know how to fix this

  2. #2
    Lively Member
    Join Date
    Jan 2000
    Posts
    123
    add this code

    #include <cmath>

    then later add...

    pow(x,y);

    C++ doesn't recognize the ^ operator

  3. #3
    jim mcnamara
    Guest
    Wel,, it does, but it's xor. (Exclusive or)

  4. #4
    Lively Member
    Join Date
    Jan 2000
    Posts
    123
    Ok... so it may... but not as a power operator

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width