Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShiqiYu/CPP
/ main
Function
main
week09/examples/array.cpp:68–82 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
66
}
67
68
int main()
69
{
70
Student * class1 = new Student[3]{
71
{
"Tom"
, 2000, true},
72
{
"Bob"
, 2001, true},
73
{
"Amy"
, 2002, false},
74
};
75
76
class1[1].printInfo();
77
delete class1;
78
//delete []class1;
79
80
81
return 0;
82
}
Callers
nothing calls this directly
Calls
1
printInfo
Method · 0.45
Tested by
no test coverage detected