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

Function main

07.14-printWithOrigin0/main.cpp:22–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22int main()
23{
24 // #A Passing differently spelled origins
25 print("Steering"s, "angle"s, 90);
26 print("steering"s, "angle"s, 75);
27
28 // #B Declaring a global variable for the steering origin
29 static const auto originSteering{"Steering"s};
30
31 // #C Ok, use of the global variable
32 print(originSteering, "angle"s, 90);
33
34 // #D Passing steering instead of Steering
35 print("steering"s, "angle"s, 75);
36}

Callers

nothing calls this directly

Calls 1

printFunction · 0.70

Tested by

no test coverage detected