Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!bcm!shell!nuchat!robby From: robby@nuchat.sccsi.com (Robert Oliver Jr.) Newsgroups: comp.lang.pascal Subject: Help w/Sort Assigment[D[D[D[D[D[D[C[Cnment Message-ID: <1991May30.052548.9870@nuchat.sccsi.com> Date: 30 May 91 05:25:48 GMT Sender: robby@nuchat.sccsi.com (Robert Oliver Jr.) Organization: Houston Public Access UNIX Lines: 131 Hello! I need some help. I'm using a 286 with a math coprocessor. The code is running under Turbo Pascal 6.0. I thank it is best to so the code and then explane the problem. program tsort; uses Crt,dos; type list= array[1..20] of integer; list1=array[1..20] of integer; var data: list; data1:list1; i: integer; procedure quicksort(var a: list; Lo,Hi: integer); procedure sort(left,right: integer); var index,match,curent,pos: integer; test:longint; begin index:=left; match:=right; curent:=a[(left+right) DIV 2]; {test:=data1[(left+right)div 2]; test:=((left+right)div 2);} repeat while a[index]match; data1[((left+right)Div 2)]:=index; if left