55问答网
所有问题
c语言error C2065: 'j' : undeclared identifier怎么回事?
这段代码用ij循环,可是i也没 有 定义过啊为什么 光提示j错误?而且之前也有过一个 同样的ij循环也没有提示错误啊
举报该问题
推荐答案 推荐于2018-03-02
i肯定在哪个地方定义过了, 不然不可能会这样, 你可以把鼠标移动到i上, 然后点击右键, 选择"转到定义", 如果是英文就是"goto definition", 你就会发现i在哪个地方定义了, 但是你忘了.
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://55.wendadaohang.com/zd/ILGLLe88cILI4RQ4e4L.html
其他回答
第1个回答 2018-03-02
j 没有声明 可见你i已经声明了
只需要在i的声明那里加个j的声明即可
第2个回答 2015-04-24
应该是你很久之前就定义了i做其他的。。
之后i还是可以使用的。
本回答被网友采纳
第3个回答 2015-04-24
j未定义,for(int j=0;j<24;j++)
第4个回答 2015-04-24
使用j之前先定义j,如int j;
相似回答
在vc++6.0中调试出现
error
C2065:
'
undeclared
identifier怎么
答:
这是变量未定义的错误
。一般情况下,是有变量没有定义,就直接使用了,这个定义一下就好了;如果是声明类对象,那么一定要包含声明这个类的头文件;另外,
有可能是你定义变量的时候,忘记加分号了
;暂时想到这些。如果不能解决的话,可以把具体代码贴上来。
c语言
运行出现
error
C2065:
'printf':
undeclared
答:
c语言运行出现 error C2065: 'printf' : undeclared identifier,
是设置错误造成的
,解决方法如下:1、首先打开点C语言软件,新建一个printf项目,添加一个printf.cpp文件。2、输入包含需要用到的头文件,如图所示。3、接着输入main函数,如图所示。4、printf作用:向控制台输出一段文本,使用printf函数输...
C语言
中
undeclared
identifier
的意思
答:
未定义的标识符
。一般是使用的变量或者函数没有定义(一般是变量)或者是定义的时候和调用的时候不一致导致的。include "stdafx.h"include <iostream> using namespace std void fun1(double p1,double p2,double p3)void fun2(double q1,double q2,double q3)void main()main前加入*部使用函数前没有...
...
C2065:
'FILE' :
undeclared
identifier怎么
办,有谁知道。谢谢_百度...
答:
你好,
C语言报这个错误意思是"FILE"未声明的标识符,问题出在你的代码中没有添加相关的头文件
,正确的代码如下:include <stdio.h>希望能帮到你。
error
C2065:
'm_scripts' :
undeclared
identifier
答:
error
C2065:
'nrscripts' :
undeclared
identifier
可能是标识符拼错啦,编译器说你没有声明 warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss warning C4819: The file contains...
大家正在搜
相关问题
C语言问题1266.c(5) : error C2065: ...
c语言运行出现 error C2065: 'printf' ...
error C2065:'strlen' : undecla...
为什么c语言中明明已经定义了还会出现error C2065:...
c语言为什么总是提示error C2065: 'printf...
error C2065: 'j' : undeclared ...
C语言中已经定义了conio.h,为什么还会出现error ...
c语言编译时出现error C2065: 'str' : u...