我该如何纠正此编译错误 [英] How do I correct this Compilation Error

查看:68
本文介绍了我该如何纠正此编译错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Dev C ++进行编译,并具有以下代码.我该如何纠正?错误代码说:将const Matrix作为double&的 this 参数传递Matrix :: operator()(int,int)''丢弃限定符

I am compiling using Dev C++ and have the code below. How do I correct it? error code says : passing `const Matrix'' as this argument of `double& Matrix::operator()(int, int)'' discards qualifiers

d += pow(-1, 1+c) * a(1, c) * Det(M);// check

推荐答案

我认为问题出在"Det"函数.
所以你能告诉我源代码吗?
i think the problem is come from the function "Det".
so can you show me the source code ?


您的索引运算符未声明为const
Your index operator is not declared const


这篇关于我该如何纠正此编译错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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