Advertisement
C_Volume2 OLE/ COM/ DCOM/ Active-X #82160

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

AI Samenvatting: 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.

Broncode
original-source
Upload
Originele reacties (3)
Hersteld van de Wayback Machine