I have to write a C++ binary search code where it generates the first 100 odd numbers and the search is used to the find the # 23 any help? I am ompletely lost
If you are completely lost, you are either very modest, didn't go to class, or have no time to do your homework.
You would do well if you read up some background information and post a tentative solution at the appropriate forum for homework help: https://www.physicsforums.com/forumdisplay.php?f=158
After that, compile the sample program and do some tests. If you have questions about the algorithms, you can post here. For problems related to coding, you can post at the homework help site.