Article View: news.software.nntp
Article #49490Pascal programing problem
From: Francis
Date: Sat, 23 Dec 2000 10:35
Date: Sat, 23 Dec 2000 10:35
14 lines
1553 bytes
1553 bytes
Please help me to finish the classwork ! Thank you !!! write a recursive function to perform the binary search on a sorted array table. The declaration of the function is as follows: uses variables table: array [1..1000] of char; FUNCTION binary_search(target: char; lower,upper: integer):integer; where table is a global variable, target is the value we want to find; lower and upper are the lower and upper limits of searching range. The function will return the position of the array element if target is found.If the target is not found, it will return 0. Merry Christmas ! Billy
Technical Details
Message-ID:
<921v6v$cb3$1@news.ctimail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!router1.news.adelphia.net!logbridge.uoregon.edu!newsgate.cuhk.edu.hk!news2.hkt.net!news.ctimail.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <921v6v$cb3$1@news.ctimail.com> Subject: Pascal programing problem Date: Sat, 23 Dec 2000 18:35:33 +0800 From: "Francis" <wlng0620@ctimail3.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!router1.news.adelphia.net!logbridge.uoregon.edu!newsgate.cuhk.edu.hk!news2.hkt.net!news.ctimail.com!not-for-mail Newsgroups: news.software.nntp Organization: Hong Kong Boardband Network Ltd. Lines: 13 NNTP-Posting-Host: 205user60.ctimail3.com X-Trace: news.ctimail.com 977567775 12643 203.80.205.60 (23 Dec 2000 10:36:15 GMT) X-Complaints-To: usenet@news.ctimail.com NNTP-Posting-Date: 23 Dec 2000 10:36:15 GMT X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3