struct footballPlayers
{
int no;
string first;
string last;
char position;
char year;
int heightFeet;
int heightInches;
int weight;
string hometown;
};
const int ARRAY_SIZE = 25;
void getData (ifstream& inFile, footballPlayers list [], int& listSize);
footballPlayers getOne (ifstream& dataI);
void selectionSort (footballPlayers list[], int listSize);
void printList(footballPlayers list[], int listSize);
void printOne (footballPlayers one);
int main(int argc, char *argv[])
{
cout<<"Driver Name: Chad Cundiff"<<endl;
cout<<"Navigator Name: Chad Cundiff"<<endl;
cout<<"Date: November 9, 2010"<<endl;
cout<<"Lab CRN: 10940"<<endl;
cout<<"This Program works with an array of structs."<<endl;
cout<<endl<<endl;
////////////////////////////////////////////////////
void selectionSort (footballPlayers list[], int listSize)
{
int index;
int smallestIndex;
int minIndex;
footballPlayers temp;
for (index = 0; index < listSize - 1; index++)
{
smallestIndex = index;
for (minIndex = index + 1; minIndex < listSize; minIndex++)
if (list[minIndex].no > list[smallestIndex].no)
smallestIndex = minIndex;