Skip to content

Commit

Permalink
Merge branch 'main' into worksession
Browse files Browse the repository at this point in the history
  • Loading branch information
jakedcolbert authored May 3, 2022
2 parents 4eb83ef + a0fa16a commit d82a12d
Show file tree
Hide file tree
Showing 4 changed files with 320 additions and 208 deletions.
Binary file modified .DS_Store
Binary file not shown.
22 changes: 11 additions & 11 deletions project5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ using namespace std;
* check if we are at the end of the file
*/
bool eof() {
char c;
std::cin >> c;
// if the fie is ended, return true
if (std::cin.eof()) {
return true;
} else {
// if the file contains more data, return the previously gotten
// data to cin
std::cin.unget();
return false;
}
char c;
std::cin >> c;
// if the fie is ended, return true
if (std::cin.eof()) {
return true;
} else {
// if the file contains more data, return the previously gotten
// data to cin
std::cin.unget();
return false;
}
}

int main(int argc, char *argv[]) {
Expand Down
Loading

0 comments on commit d82a12d

Please sign in to comment.