Skip to content

Commit

Permalink
Closed a few datafiles, added terrible wrong message 😂
Browse files Browse the repository at this point in the history
  • Loading branch information
adiultra committed Jun 1, 2016
1 parent e31ae57 commit 73efe5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,8 @@ int parse(char command[80]){
cout << line << endl;
}

helpfile.close();

success = 1;
}

Expand Down Expand Up @@ -412,6 +414,8 @@ void finish() {
for (int i = 0; i < _arrayLindex; i++) {
file.write((char*)&arrayL[i], sizeof(arrayL[i]));
}

file.close();
}

int main() {
Expand Down Expand Up @@ -439,6 +443,10 @@ int main() {
cout << "Data Saved, Have a Great Day :)" << endl;
break;
}

else {
cout << "Something went terribly wrong, we are sorry for it. :(" << endl;
}
}

finish();
Expand Down

0 comments on commit 73efe5b

Please sign in to comment.