Missing separate debuginfos, use: debuginfo-install glibc-2.13-2.i686
另外还有这个
Program received signal SIGSEGV, Segmentation fault.
0x009e479f in _IO_vfscanf_internal () from /lib/libc.so.6
(gdb) s
Single stepping until exit from function _IO_vfscanf_internal,
which has no line number information.
Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists
这是程序
#include
float avg(int var[],int num);
int main()
{
int n,i;
float average;
printf("请输入需要计算的整数个数:");
scanf("%d",&n);
int array[n];
for(i=0;i
printf("请输入第%d个整数:",i+1);
scanf("%d",array[i]);
}
average=avg(array,n);
printf("所有%d个整数的平均值是:%6.2f\n",n,average);
}
这个函数float avg(int var[],int num);的定义没有复制。
请问以上的两个是什么状况呢?
求解答!
lanlanlangzi 于 2011-11-03 14:30:53发表:
{:3_112:}
lanlanlangzi 于 2011-11-02 17:12:48发表:
{:3_116:}
hml1006 于 2011-10-31 10:06:35发表:
scanf("%d",&n);
int array[n];
(5ty(
谁能告诉我c语言什么时候也可以这样了???
专攻Linux/ARM 于 2011-10-22 11:49:44发表:
2# lykginy
额,少了个赋值符号&,不过加上了之后编译还出现这个Missing separate debuginfos, use: debuginfo-install glibc-2.13-2.i686
费解!
lykginy 于 2011-10-22 01:21:20发表:
[i=s] 本帖最后由 lykginy 于 2011-10-22 01:22 编辑 [/i]
这……