错误C4430:缺少类型说明符 - 假定为int。注意:C ++不支持默认值 [英] error C4430: missing type specifier - int assumed. Note: C++ does not support default

查看:1118
本文介绍了错误C4430:缺少类型说明符 - 假定为int。注意:C ++不支持默认值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误C4430:缺少类型说明符 - 假设为int。注意:C ++不支持default-int

错误我如何解决这个错误?


例如给出这部分代码..

error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
err how do i fix that error?

for example given to this section of code..

展开 | 选择 | Wrap | 行号

推荐答案

当你是变量''row''和''col''似乎是未声明的使用它们。也许你的意思是这个 - > row和this-> col?
The variables ''row'' and ''col'' appear to be undeclared when you are using them. Maybe you mean this->row and this->col?



变量''row''和''col'当你使用它们时,似乎是未宣布的。也许你的意思是这个 - >行和这个 - > col?
The variables ''row'' and ''col'' appear to be undeclared when you are using them. Maybe you mean this->row and this->col?



我正在使用行和col作为变量,由Matrix类下的几个矩阵使用..



i已经发布了以下代码供你参考

谢谢


the thing is i am using the row and col as a variable to be used by several matrices under the Matrix class..


i have posted the code below for yr kind reference
thanks


Matrix.cpp文件

Matrix.cpp file

展开 | 选择 | Wrap | 行号


这篇关于错误C4430:缺少类型说明符 - 假定为int。注意:C ++不支持默认值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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