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

Function main

01.10-compoundRequirement1/main.cpp:66–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64
65
66int main()
67{
68 printf("%d\n", Add(2, 3, 4));
69
70 printf("%d\n", Add(2, 5));
71
72 auto a = Add(Rational{3, 4}, Rational{4, 4}, Rational{5, 4});
73 printf("%d/%d\n", a.Numerator(), a.Denominator());
74}

Callers

nothing calls this directly

Calls 3

AddFunction · 0.70
NumeratorMethod · 0.45
DenominatorMethod · 0.45

Tested by

no test coverage detected