SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Technology Stocks : Programing

 Public ReplyPrvt ReplyMark as Last ReadFilePreviousNext  
To: MechanicalMethod who started this subject11/4/2001 3:14:32 PM
From: MechanicalMethod   of 1
 
I want to sort the arrays uSort+dSort in ascending and descending order.
So far I've only succeeded in populating them. Any thoughts on how to
sort them?

var: ui(0), di(0);
array: uRoc[9999,0](0), dRoc[9999,0](0), uSort[3](0), dSort[3](0);

if ui>=4 then begin {populate uSort}
uSort[0]=uRoc[ui,0];
uSort[1]=uRoc[ui-1,0];
uSort[2]=uRoc[ui-2,0];
uSort[3]=uRoc[ui-3,0];
end;
if di>=4 then begin {populate dSort}
dSort[0]=dRoc[ui,0];
dSort[1]=dRoc[ui-1,0];
dSort[2]=dRoc[ui-2,0];
dSort[3]=dRoc[ui-3,0];
end;
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePreviousNext