Skip to content

Commit

Permalink
sorting fixed v1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Bancie committed Aug 6, 2024
1 parent f2e32db commit 14f5cdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Binary file modified main/phase 1/phase_1
Binary file not shown.
6 changes: 4 additions & 2 deletions main/phase 1/phase_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ using namespace std;
#define maxn 1000
#define var 5 // <-- Variable Summarized from Data File

int compare (const void *a, const void *b) {
int compare(const void *a, const void *b) {
double *rowA = *(double **)a;
double *rowB = *(double **)b;
return (rowA[6] - rowB[6]);
if (rowA[6] > rowB[6]) return -1;
if (rowA[6] < rowB[6]) return 1;
return 0;
}

class Job_Type {
Expand Down

0 comments on commit 14f5cdb

Please sign in to comment.