Advertisement
2002ASP OLE/ COM/ DCOM/ Active-X #7959

a Binary Search Example

The program accepts the name of an input file from the command line. Then it reads strings from the input file into a dynamically allocated array of pointers to char. Prompts the user for a string to search for. After that it searches the array using binary search. If found, reports the row (counting from 1) in which the target was found. If not found, reports "Not Found" Asks the user if he/she would like to try again.

AI

Ringkasan AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Kode Sumber
original-source
Upload
Komentar Asli (3)
Dipulihkan dari Wayback Machine