哪们大虾帮忙找下此彩票程序错在哪~
麻烦帮我看下彩票程序错在哪~~程序老过不去~~显示24行和37行错误...帮忙看下哪里还有错#include<stdlib.h>
#include<string.h>
void fun();
main()
{int a[7] ,num,n,k,w,i,End=1;
do
{printf("\n1.36-7:\n");
printf("\n2.31-7:\n");
printf("\n3.22-5:\n");
printf("4.End!:\n");
printf("please input nmber:");
scanf("%d",&num);
switch(num)
{case 1:k=36;w=7;break;
case 2:k=31;w=7;break;
case 3:k=22;w=5;break;
case 4:End=0;
default:printf("God bless!");
continue;}
fun(k,w,a); sort(a,w);
for(i=0;i<w;i++) printf("%3d",a[i]);
printf("\n");}
while(End)
void fun(int m,int n,int *s) 24行错误do-while statement missing
{int i,j=0,t;randomize();
while(j!=n)
{t=1+random(m-1);
for(i=0;i<j;i++)
if(t==s[i])break;
if(i==j)
{s[j]=t;j++;}}}
int sort(int s[],int n)
{int t,i,j;
for(i=0;i<n1;i++)
for(j=i++;j<n;j++)
if(s[j]>s[j]{t=s[i]; s[i]=s[j]; s[j]=t;})} 37行错误 compound statement missing 和 function should return a value