I have been working on this program for a few days now. I am very new to C++, and as you will probably be able to tell, am very confused about the correct syntax for several occasions (also sorry about my sloppy form :c). I believe the current problem with what I have so far deals with the binary algorithm I'm using. Any help with any portion of the code will greatly appreciated.
Develop a modularized C++ application program that reads a list of scores from an input data file into an array, displays the list of the scores stored in the arrays, sorts the list in ascending order using a selection sort algorithm, and searches the list for a given score using a binary search algorithm.
Heres what I have so far:
using namespace std;
ifstream infile(infile.txt); //Just 7 numbers in a text document, space delimited.
void doRead(int scores);
void doSort(int scores);
int doBin(int scores, int search); //I'm almost positive the problem is here.. I just can't pin point it.
void doPrint(int scores);