NO

Author Topic: Operands of * have incompatible types ....  (Read 3611 times)

Blackjack

  • Guest
Operands of * have incompatible types ....
« on: October 02, 2007, 09:00:00 PM »
So, I keep getting this error in my program.. can't find anything wrong  :-\

Line:
bmassab = 1.019 * pow (e, (log * diam * 2.391 - 2.413));

Error:
error #2168: Operands of * have incompatible types 'double __cdecl function(double) *' and 'double'.


Thanks~ :)

severach

  • Guest
Re: Operands of * have incompatible types ....
« Reply #1 on: October 03, 2007, 03:32:25 AM »
Move your cursor to log and hit F1. log() is a function and it looks like you are trying to use it as a variable.

Blackjack

  • Guest
Re: Operands of * have incompatible types ....
« Reply #2 on: October 03, 2007, 03:36:55 AM »
Ah right, I changed log * diam * 2.391 - 2.413   to  log (diam * 2.391 - 2.413) and it works. Thx ^^