这个C程序哪错了?可以运行出来但是计算结果不对

问题描述:

这个C程序哪错了?可以运行出来但是计算结果不对
#include
#include
main()
{
int i;
int price[8];
int highestP;
int highprice(int price[8]);
printf("please enter 8 goods price:\n");
for(i=0;i
1个回答 分类:综合 2014-11-23

问题解答:

我来补答
highprice里的作用是比较数组中第一个数和第二个数的大小.并返回这两个数中的大数.
你是不是想求最大值?如果是的话,那你的代码就写错了.
 
 
展开全文阅读
剩余:2000