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

Function main

06.07-orderingComparisonString1/main.cpp:36–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34 }
35
36int main()
37{
38 const char bufa[]{"Hello"};
39 const char bufc[]{"Hello"};
40
41 String a{bufa};
42 String b{"C++20"};
43
44 String c{bufc};
45 String d{"HellO"};
46 String e{"s"};
47
48 CMP_PRINT(a == b, false);
49 CMP_PRINT(a == c, true);
50 CMP_PRINT(a == d, false);
51
52 CMP_PRINT(a > b, true);
53 CMP_PRINT(a < b, false);
54 CMP_PRINT(a > c, false);
55 CMP_PRINT(a > d, true);
56 CMP_PRINT(a > e, false);
57 CMP_PRINT(a < e, true);
58}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected