[Error] invalid argumentoperands of types 'long long int' and 'double' to binary 'operat

这段代码按预期工作的 INT 键入:

在 INT 昰通过普通的 T 更换时编译器抱怨:

运算符'= “不能应用于类型的操作数'T'和'T'

为什么会出现这种情况,是有解决这个问题的方法

 

我要回帖

更多关于 invalid operands 的文章

 

随机推荐