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

Function main

code/2/2.5.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28int main() {
29 int arr[3] = {1,2,3}; // 列表初始化
30 Foo foo(1); // 普通构造初始化
31
32 Magic magic = {1,2,3,4,5}; // 使用 initialize_list
33 func({1,2,3});
34}

Callers

nothing calls this directly

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected