MCPcopy Create free account
hub / github.com/changkun/modern-cpp-tutorial / main

Function main

code/2/2.7.cpp:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54// }
55
56int main() {
57 // Subclass oops; // 非法, 默认构造已删除
58 Subclass s(1.2, 3, "abc");
59
60 s.foo(1);
61
62 std::cout << s.floating << std::endl;
63 std::cout << s.value << std::endl;
64 std::cout << s.str << std::endl;
65}

Callers

nothing calls this directly

Calls 1

fooMethod · 0.45

Tested by

no test coverage detected