minor update

This commit is contained in:
Blaise Tine
2021-06-22 09:30:36 -07:00
parent c331da5ff7
commit 2372067817
13 changed files with 217 additions and 14036 deletions

View File

@@ -237,12 +237,12 @@ int loadData(char *filename, std::vector<Record> &records,
locations.push_back(latLong);
records.push_back(record);
recNum++;
if (0 == (recNum % 500))
break;
/*if (0 == (recNum % 500))
break;*/
}
if (++q == 3)
break;
/*if (++q == 3)
break;*/
fclose(fp);
}
fclose(flist);
@@ -281,8 +281,8 @@ void findLowest(std::vector<Record> &records, float *distances, int numRecords,
int parseCommandline(int argc, char *argv[], char *filename, int *r, float *lat,
float *lng, int *q, int *t, int *p, int *d) {
int i;
// if (argc < 2) return 1; // error
strncpy(filename, "filelist.txt", 100);
if (argc < 2) return 1; // error
strncpy(filename,argv[1],100);
char flag;
for (i = 1; i < argc; i++) {