Skip to content

Commit

Permalink
Indented code to match C++ style guide
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahbigk77 committed Apr 26, 2022
1 parent a3fef01 commit fe09369
Show file tree
Hide file tree
Showing 3 changed files with 254 additions and 254 deletions.
66 changes: 33 additions & 33 deletions project5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -18,48 +18,48 @@ 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[]) {
// Repeatedly read input from standard input
while (!eof()) {
// create a new graph for each loop, which will read all of the
// corresponding data per graph
Province theProvince(cin);
// Repeatedly read input from standard input
while (!eof()) {
// create a new graph for each loop, which will read all of the
// corresponding data per graph
Province theProvince(cin);

std::cout << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << "---------------- New DataSet: ------------------" << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << "---------------- New DataSet: ------------------" << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << std::endl;

theProvince.printAll(0, cout);
theProvince.printAll(0, cout);


theProvince.printShortestPath(std::cout);
theProvince.printShortestPath(std::cout);

std::cout << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << std::endl;

theProvince.minSpan(std::cout);
theProvince.minSpan(std::cout);

std::cout << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << std::endl;
std::cout << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << "------------------------------------------------" << std::endl;
std::cout << std::endl;

}
}
}
Loading

0 comments on commit fe09369

Please sign in to comment.