aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk7
diff options
context:
space:
mode:
authorMatthew Strapp <msattr@gmail.com>2019-05-09 09:28:20 -0500
committerMatthew Strapp <msattr@gmail.com>2019-05-09 09:28:20 -0500
commit68fd319ec403ab8e7c3ad999a8d66714b23f5fc5 (patch)
tree572cb7cf0707450f8495c9e4c55d89c012742946 /ee1301/wk7
parentE (diff)
downloadhomework-68fd319ec403ab8e7c3ad999a8d66714b23f5fc5.tar
homework-68fd319ec403ab8e7c3ad999a8d66714b23f5fc5.tar.gz
homework-68fd319ec403ab8e7c3ad999a8d66714b23f5fc5.tar.bz2
homework-68fd319ec403ab8e7c3ad999a8d66714b23f5fc5.tar.lz
homework-68fd319ec403ab8e7c3ad999a8d66714b23f5fc5.tar.xz
homework-68fd319ec403ab8e7c3ad999a8d66714b23f5fc5.tar.zst
homework-68fd319ec403ab8e7c3ad999a8d66714b23f5fc5.zip
time to fail a HW part 2
Diffstat (limited to 'ee1301/wk7')
-rw-r--r--ee1301/wk7/hw7_directory/HouseDB.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ee1301/wk7/hw7_directory/HouseDB.cpp b/ee1301/wk7/hw7_directory/HouseDB.cpp
index 3eb0d73..eb1ff8f 100644
--- a/ee1301/wk7/hw7_directory/HouseDB.cpp
+++ b/ee1301/wk7/hw7_directory/HouseDB.cpp
@@ -94,6 +94,8 @@ int main(int argc, char* argv[]) {
while (findAvg!=NULL) {
for(int j=0; j<999; j++) {
if (zipSort[j]=findAvg->zipcode) {
+ cout << zipSort[j] << " " << findAvg->zipcode << endl;
+ cout << j << endl;
costPerZip[j]+=findAvg->price;
totalPerZip[j]++;
break; //Break for loop