arrivalTime.minutesSince(departureTime)
So t1.minutesSince(t2) is the minutes from the time when t2 occured
until when t1 occurs. So you can think of it as t1-t2.
if (nextline == null)
stop = true;
by
if (nextline == null || nextline.trim().equals(""))
stop = true;
CC -g +w -c lab1.cc
CC -g +w -c closest-pair.cc
"closest-pair.cc", line 14: Warning: n is defined but not used.
"closest-pair.cc", line 14: Warning: Y is defined but not used.
2 Warning(s) detected.
CC -g +w -c sort.cc
CC -g +w -c point.cc
CC -g +w -c pointpair.cc
CC -g +w -c Profile_Timer.cc
CC -g +w -o lab1.out point.o pointpair.o sort.o closest-pair.o\
Profile_Timer.o lab1.o
The warnings will go away when your divide-and-conquer algorithm
is put in place since it will use n (the number of points) and
Y (the name used for pointsByY).
Return to the CS 241 Home Page