No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
This is suppose to be a simple selection sort but I think I'm missing something because my output isn't completed sorted right. [CODE]void SelectionSort(data list[], int length) { int index; int smallestIndex; int minIndex; data temp; for( index = 0; index < length; index++) { smallestIndex = index; for(minIndex = … |
|
How do I sort an array of struct? For example: struct data { string city; string state; int zip; }; data listing[]; |
|
I'm getting conversion errors 2446 and 2040 on the red line. Can anyone help me figure out what i've done. I'm new to C++ but I'm expereinced in C# so I do have some foundation. Any help is greatly appreciated! [CODE] string GetString(ifstream & fn, string & s, int length) … |