标题:请问这个程序第4行哪里不对?
取消只看楼主
happyleaf201
Rank: 1
等 级:新手上路
帖 子:7
专家分:0
注 册:2010-7-30
结帖率:100%
已结贴  问题点数:12 回复次数:0 
请问这个程序第4行哪里不对?


#include "stdio.h"
#include "math.h"
void insertSort(int L[],int W[],int T[],int n,i)
{printf("please input eleven organ's length:");
  for (int i=0;i<n;i++;);
      {scanf("%d",&L[i];}
  printf("please input eleven organ's width:");
  for (int i=0;i<n;i++;);
      {scanf("%d",&W[i];}
  printf("please input eleven organ's thickness:");
  for (int i=0;i<n;i++;);
     {scanf("%d",&T[i];}
      {int i,j,t,s,v;
      for (j=0;j<n-1;j++;);
    {if (L[j]>L[j+1])
      {t=L[j];
       L[j]=L[j+1];
       L[j+1]=t;
       }
    if (W[j]>W[j+1])
      {t=W[j];
       W[j]=W[j+1];
       W[j+1]=t;
      }
    if (T[j]>T[j+1])
      {t=T[j];
       T[j]=T[j+1];
       T[j+1]=t;
      }
    }
      }
      i=(n-1)/2;
      s=2*(L[i]*W[i]+L[i]*T[i]+W[i]*T[i]);
      v=L[i]*W[i]*T[i];
      printf("s=%d,v=%d\n",s,v);
      }
------------------------------------------------------------------------------------------
以下是在 VC6下执行的结果,请问怎么不停的报错,但却不说哪里错了?
搜索更多相关主题的帖子: void include please 
2010-08-07 09:52



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-315018-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.079401 second(s), 9 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved