该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
File Edit Run Compile Project Options Debug Break/watch
╒════════════════════════════════════ Edit ════════════════════════════════════╕
│ Line 3 Col 16 Insert Indent Tab Fill Unindent * D:NONAME.C │
│ #include │
│ main() │
│ { static int a[]={12,29,-17,-16,25,-39,56,13,39,29} │
│ int sum=0,i,j=0; │
│ for(i=0;i<10;i++) │
│ if(a[i]>0) │
│ {sum+=j;j++;} │
│ printf("%f",sum/j);} │
│ │
│ │
│ │
│ │
│ │
│ │
├—————————————————————————————————— Message ———————————————————————————————————┤
│ Compiling D:\TC2\NONAME.C: │
│•Error D:\TC2\NONAME.C 4: Declaration syntax error in function main │
│ Error D:\TC2\NONAME.C 5: Undefined symbol 'i' in function main │
│ Error D:\TC2\NONAME.C 7: Undefined symbol 'sum' in function main │
│ Error D:\TC2\NONAME.C 7: Undefined symbol 'j' in function main │
└——————————————————————————————————————————————————————————————————————————————┘
F1-Help F5-Zoom F6-Switch F7-Trace F8-Step F9-Make F10-Menu NUM
请大侠帮我指点下 小弟感激不尽