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

Function main

Examples/NoModules/Chapter 11/Ex11_06/Ex11_06.cpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13int main()
14{
15 std::cout << "math::sqrt2 has the value " << math::sqrt2 << std::endl;
16 std::cout << "This should be 0: " << (math::sqrt2 - std::numbers::sqrt2) << std::endl;
17 std::cout << "This should be 2: " << math::square(math::sqrt2) << std::endl;
18}

Callers

nothing calls this directly

Calls 1

squareFunction · 0.70

Tested by

no test coverage detected