类型为“int”和“int()(int)”的无效操作数为二进制“operator-” [英] invalid operands of types `int' and `int ()(int)' to binary `operator-'

查看:394
本文介绍了类型为“int”和“int()(int)”的无效操作数为二进制“operator-”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿我需要帮助这个


这个错误不断弹出第20行类型`int''和`int()(int)''的无效操作数到二进制` operator-''

有什么帮助我可以帮到我!!!

非常感谢你。


我很抱歉,如果我违反任何规则,但我现在变得绝望。我搜索了每一个地方,但我找不到答案,所以请帮助我。

hey i need help with this

this error keeps popping up on line 20 invalid operands of types `int'' and `int ()(int)'' to binary `operator-''
is there any help i can get please help me!!!
thank you so much.

im sorry if i broke any rules but im getting desperate right now. i searched every where but i cant find the answer for it so please help me.

展开 | 选择 | Wrap | 行号

推荐答案

你还没有定义这些函数:


int h(int h = 100);


int l(int l = 10);


int d(int d = 0);
You have not defined these functions:

int h(int h=100);

int l(int l = 10);

int d(int d = 0);


它们应该在第32-34行中定义
they should be defined in lines 32-34


这些是变量:
These are variables:
展开 | 选择 | Wrap | 行号


这篇关于类型为“int”和“int()(int)”的无效操作数为二进制“operator-”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆