MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / main

Function main

Examples/NoModules/Appendix A/ExA_09A/ExA_09A.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5double localHelper(double x, unsigned n); // Declares an external localHelper() function
6
7int main()
8{
9 for (unsigned i{ 0 }; i <= 5; ++i) // Calculate positive powers of 8
10 std::cout << std::format("{:10}\n", localHelper(8.0, i));
11 std::cout << std::endl;
12}

Callers

nothing calls this directly

Calls 1

localHelperFunction · 0.70

Tested by

no test coverage detected