- 论坛徽章:
- 0
|
问题仍然没有得到解决!
# include "stdio.h"
# include "stdlib.h"
int main() {
int v[10000000];
long int i;
for (i=1; i<=10000000; i++) v [ i ] =i;
return 0;
}
在VC++6.0中,编译时出现如下错误:
Compiling...main.cpp
e:workdatastructure est1main.cpp(7) : error C2440: '=' : cannot convert from 'long' to 'int [10000000]'
There are no conversions to array types, although there are conversions to references or pointers to arrays
Error executing cl.exe.
test1.exe - 1 error(s), 0 warning(s)
有没有哪位师傅可以把代码写出来给我参考一下啊?Thanks!
[ 本帖最后由 strato 于 2005-11-11 13:29 编辑 ] |
|