MCPcopy Create free account
hub / github.com/0voice/cpp_new_features / main

Function main

cpp_11/003_class_functor.cpp:14–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12};
13
14int main(int argc, char *argv[])
15{
16 //===functor
17 Tax high(0.40, 30000);
18 Tax middle(0.25, 20000);
19
20 cout << "tax over 3w: " << high(37500) << endl;
21 cout << "tax over 2w: " << middle(27500) << endl;
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected