Hello,
So I've been working on this program for days. I was finally able to read the text file, but now I'm having trouble sorting arrays. I can sort one array, but the corresponding information (which is stored in three other arrays) won't sort with the array. Any help is greatly appreciated.
here is my code:
1 2 3 4 5 6 7 8 9 10 11 12
.
.
.
int main()
{
int choice;
ifstream fin ("students.txt");
if(fin.is_open())
.
.
.
Thanks. That worked.
I have one last question.
I have a void function that outputs the information based on the index, but for some reason the comma is not placed right after the last name is outputted it outputs as:
You've got to user your brain now and figure out what 'swap' means and how you are supposed to use it in the sort algorithm. When do you 'swap' something?