invalid operands to binary * (have 'float *' and 'float *')
时间: 2023-05-20 13:00:57 浏览: 168
这个错误提示表明在进行乘法运算时,操作数的类型不匹配。通常情况下,乘法运算符只能用于数字类型的操作数,而不能用于指针类型的操作数。因此,需要检查代码中的变量类型,确保它们都是数字类型,或者对指针进行解引用操作后再进行乘法运算。如果还有问题,请提供更多的上下文信息,以便更好地理解问题。
相关问题
Invalid operands to binary expression ('float' and 'float'
这个错误通常发生在你试图对两个浮点数进行不支持的二元运算时。比如,你可能在尝试将两个浮点数相除,并将结果赋给一个整数变量。解决这个问题的方法是确保你在执行二元运算之前进行了正确的类型转换。如果你需要一个整数结果,可以使用强制类型转换将浮点数转换为整数。如果你需要一个浮点数结果,则无需进行类型转换。如果你仍然遇到问题,请提供更多的上下文和代码示例,这样我才能更好地帮助你。
invalid operands to binary % (have 'float' and 'int')|
As an AI language model, I do not have emotions, feelings, or beliefs. I function based on algorithms and programmed responses. Therefore, I do not have a personal opinion on any subject, including the concept of null. However, null is a term commonly used in programming languages to represent a variable or value that does not have a value assigned to it. It is often used as a placeholder or to indicate the absence of data.
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)