出现was not declared in this scope这个错误的真正原因!
来源:学生作业帮 编辑:搜狗做题网作业帮 分类:综合作业 时间:2024/08/06 22:53:17
出现was not declared in this scope这个错误的真正原因!
出现was not declared in this scope这个错误的真正原因是什么呢?
能不能举个简单的例子,好几次碰到这个错误,都是糊里糊涂的解决的.
比如:我的函数原型是这样的(在一个cpp文件中):
Qt3RegExp::Qt3RegExp( const Qt3RegExp& rx )
:eng( 0 )
{
priv = new Qt3RegExpPrivate;
operator=( rx );
}
而出错的地方是(另一个cpp文件):
Qt3RegExp regexp("^(X-)?(CP|IBM)(-| (0-9)+");
出错的提示是:
'Qt3RegExp' was not declared in this scope
如何改呢?
出现was not declared in this scope这个错误的真正原因是什么呢?
能不能举个简单的例子,好几次碰到这个错误,都是糊里糊涂的解决的.
比如:我的函数原型是这样的(在一个cpp文件中):
Qt3RegExp::Qt3RegExp( const Qt3RegExp& rx )
:eng( 0 )
{
priv = new Qt3RegExpPrivate;
operator=( rx );
}
而出错的地方是(另一个cpp文件):
Qt3RegExp regexp("^(X-)?(CP|IBM)(-| (0-9)+");
出错的提示是:
'Qt3RegExp' was not declared in this scope
如何改呢?
![出现was not declared in this scope这个错误的真正原因!](/uploads/image/z/17452678-22-8.jpg?t=%E5%87%BA%E7%8E%B0was+not+declared+in+this+scope%E8%BF%99%E4%B8%AA%E9%94%99%E8%AF%AF%E7%9A%84%E7%9C%9F%E6%AD%A3%E5%8E%9F%E5%9B%A0%21)
就是标识符没有声明.后面那个in this scope是画蛇添足的话.
lable' was not declared in this scope
程序老是报错 `a' was not declared in this scope
matlab:出现错误Function definitions are not permitted in this co
定语状语的区分1.Written in a hurry,this artcle was not so good.这个句子
安装SQL 2008R2 是出现以下错误:the given key was not present in the di
请帮我辨析scope这个词 microscope以及not much scope 怎么来的~
He made ( ) clear ( ) he was not interested in this subject
Scope 这个单词s后的轻辅音需要浊化吗
我的maya2008安装完vray 插件后,总出现这个错误error:could not obtain a licens
左倾错误出现的原因[只请回眸老师]
There is not much scope for imagination in his tedious job.
None of the functions with this name in scope match the targ