I'm having trouble with my swap. I'm just trying to compare strings and swap them.
my problem is that no swap is taking place.Code:for(int n=0; n<= 13; n++) for (int i=0; i<= 13; i++ ) { int j=i+1; int result = strcmp( records[i].name, records[j].name); if ( result > 0 ) swap(i,j);
Thanks