int main(void) { assert(Triangle(285) == 40755); assert(Pentagonal(165) == 40755); assert(Hexagonal(143) == 40755); std::cout << problem45() << std::endl; }
/* The main function, or the "entry function" of the lab2 program, simply calls the other * functions to run. */ int main() { cout << ">> I'm going to run the lab review now:" << endl; illegalStatements(); cout << ">> I'm going to run lab problem 1 now:" << endl; problem1(); cout << ">> I'm going to run lab problem 2 now:" << endl; problem2(); cout << ">> I'm going to run lab problem 3 now:" << endl; problem3(); cout << ">> I'm going to run lab problem 4/5 now:" << endl; problem45(); return 0; // Lets the operating system know everything ran successfully. }