Error 1 Operator '*' cannot be applied to operands of type 'method group' and 'double'

前端 未结 5 1803
难免孤独
难免孤独 2021-01-25 19:11

I believe what i am trying to do is very simple but I get the error. Operator \'*\' cannot be applied to operands of type \'method group\' and \'double\'

I want to mult

5条回答
  •  臣服心动
    2021-01-25 19:26

    dayrental is a function that return void.

    it has no value and you cannot multiply it by 19

提交回复
热议问题