binary search

I have double char array(char arr[5][100])
with 5 multi-word strings that are up to 100 char long.
I need to use binary search in C++ to search the array for some word
that I enter.

index 0: First line.
index 4: This is string number 1.

search string : number.
-result: found string in index 4 at position 17.
found at position 28 (from the start of string in index 0)

Thank you

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!