MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / main

Function main

01.08-compoundRequirement0/main.cpp:72–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70
71
72int main()
73{
74 printf("%d\n", add(2, 3, 4));
75
76 printf("%d\n", add(2, 5));
77
78 auto a = add(Rational{3, 4}, Rational{4, 4}, Rational{5, 4});
79 printf("%d/%d\n", a.Numerator(), a.Denominator());
80}

Callers

nothing calls this directly

Calls 3

addFunction · 0.70
NumeratorMethod · 0.45
DenominatorMethod · 0.45

Tested by

no test coverage detected