3 / 3 / 0
Регистрация: 19.11.2011
Сообщений: 128
|
||||||||||||||||
1 | ||||||||||||||||
Ошибка "Operator '*' cannot be applied to operands of type 'ChordLib.Coeff' and 'double'"13.12.2012, 00:27. Показов 5791. Ответов 1
Метки нет (Все метки)
Что делать в данном случае?
Коллеги очень нужна ваша помощь Как мне исправить это?
0
|
13.12.2012, 00:27 | |
Ответы с готовыми решениями:
1
operator '==' cannot be applied to operands of type 'int' and 'bool' Operator '&' cannot be applied to operands of type 'bool' and 'int' Почему появляется ошибка "Operator '-' cannot be applied to operands of type 'string' and 'int'" Assets\Scripts\SellResurs.cs(44,12): error CS0019: Operator '>' cannot be applied to operands of type 'string' and 'stri |
13.12.2012, 11:39 | 2 | |||||
Видимо, ваш индексатор this[i] возвращает объект типа ChordLib.Coeff.
Результат индексатора вы пытаетесь умножить на double. Но компилятор понятия не имеет, как умножать числа на экземляры пользовательских классов, отсюда и ошибка Скорее всего, из вашего объекта ChordLib.Coeff нужно вытянуть свойство C, и уже его умножать.
0
|
13.12.2012, 11:39 | |
13.12.2012, 11:39 | |
Помогаю со студенческими работами здесь
2
Не понимаю почему выдает ошибку "Operator '>' cannot be applied to operands of type 'object' and 'int'" Operator '||' cannot be applied to operands of type 'byte' and 'byte' [Error] invalid operands of types '<unresolved overloaded function type>' and 'double' to binary 'operator*' Ошибка: invalid operands of types 'double' and 'double' to binary 'operator^' Ошибка: invalid operands of types 'double' and 'int' to binary 'operator%' Ошибка error CS0034: Operator '-' is ambiguous on operands of type 'Vector2' and 'Vector3' invalid operands of types ‘double*’ and ‘double’ to binary ‘operator*’ Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |