weixin_43600089
fightangeI
2019-01-08 18:28

提示不清楚的定义,不知道问题是什么

  • c语言

#include
int main ()
{ int i;
int fib_nubmer[40];
printf ("请输入前两位数");
scanf ("%d %d",&fib_nubmer[0] ,&fib_nubmer[1]);
for (i = 2; i < 49; i++){
fib_nubmer[i] = fib_number[i-1] + fib_number[i-2];
printf ("%d", fib_number[i] );}
return 0;
}

用VC 6.0编辑这个程序的时候下面错误提示
error C2065: 'fib_number' : undeclared identifier
error C2109: subscript requires array or pointer type
error C2109: subscript requires array or pointer type
error C2109: subscript requires array or pointer type

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐

换一换